ElVis Java Interface

sv.graph
Class SurfacePolygon

java.lang.Object
  extended byjava.awt.Polygon
      extended bysv.graph.SurfacePolygon
All Implemented Interfaces:
java.io.Serializable, java.awt.Shape

public class SurfacePolygon
extends java.awt.Polygon

The SurfacePolygon contains the centroid.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Polygon
npoints, xpoints, ypoints
 
Constructor Summary
SurfacePolygon()
           
 
Method Summary
static void averageShade(SurfacePolygon a, SurfacePolygon b)
           
static double[] calculateNormal(int i, int j, double[][][] grid, int direction)
           
static double[] crossProduct(double[] a, double[] b)
           
static double[] normalize(double[] a)
           
 void setColor(java.awt.Color c)
           
 void shade(double[] lightDirection, double[] washDirection)
           
 
Methods inherited from class java.awt.Polygon
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfacePolygon

public SurfacePolygon()
Method Detail

calculateNormal

public static double[] calculateNormal(int i,
                                       int j,
                                       double[][][] grid,
                                       int direction)

shade

public void shade(double[] lightDirection,
                  double[] washDirection)

averageShade

public static void averageShade(SurfacePolygon a,
                                SurfacePolygon b)

setColor

public void setColor(java.awt.Color c)

crossProduct

public static double[] crossProduct(double[] a,
                                    double[] b)

normalize

public static double[] normalize(double[] a)

ElVis Java Interface