SciLib.Grp
Class Plot3D

java.lang.Object
  extended by SciLib.Grp.Plot3D

public final class Plot3D
extends java.lang.Object

This class contains some methods to draw a 3D graphics.


Constructor Summary
Plot3D()
           
 
Method Summary
static void plot(Function3D func)
          Plot a function.
static void plot(Graphics3D g3D, Function3D func)
          Plot a function with coordinate system.
static void plot(Graphics3D g3D, Function3D func, boolean coord)
          Plot a function.
static void plot(Graphics3D g3D, vector x, vector y, matrix z, java.awt.Color c, java.lang.String title)
          default plot method with coordinate system
static void plot(Graphics3D g3D, vector x, vector y, matrix z, java.awt.Color c, java.lang.String title, boolean coord)
          default plot method
static void plot(vector x, vector y, matrix z, java.awt.Color c, java.lang.String title)
          default plot method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plot3D

public Plot3D()
Method Detail

plot

public static void plot(Graphics3D g3D,
                        vector x,
                        vector y,
                        matrix z,
                        java.awt.Color c,
                        java.lang.String title,
                        boolean coord)
default plot method

Parameters:
g3D - A Graphics3D object
x - A vector that contains x-coordinates
y - A vector that contains y-coordinates
z - A matrix that contains z-coordinates at grid (x,y)
c - Color
title - A string
coord - A boolean, true for display coordinate system.

plot

public static void plot(Graphics3D g3D,
                        vector x,
                        vector y,
                        matrix z,
                        java.awt.Color c,
                        java.lang.String title)
default plot method with coordinate system

Parameters:
g3D - A Graphics3D object
x - A vector that contains x-coordinates
y - A vector that contains y-coordinates
z - A matrix that contains z-coordinates at grid (x,y)
c - Color
title - A string

plot

public static void plot(vector x,
                        vector y,
                        matrix z,
                        java.awt.Color c,
                        java.lang.String title)
default plot method

Parameters:
x - A vector that contains x-coordinates
y - A vector that contains y-coordinates
z - A matrix that contains z-coordinates at grid (x,y)
c - Color
title - A string

plot

public static void plot(Graphics3D g3D,
                        Function3D func,
                        boolean coord)
Plot a function.

Parameters:
g3D - A Graphics3D object
func - An object that implements the Function interface
coord - A boolean, true for display coordinate system.

plot

public static void plot(Graphics3D g3D,
                        Function3D func)
Plot a function with coordinate system.

Parameters:
g3D - A Graphics3D object
func - An object that implements the Function interface

plot

public static void plot(Function3D func)
Plot a function.

Parameters:
func - An object that implements the Function interface