sv.graph
Class SurfacePolygon
java.lang.Object
  
java.awt.Polygon
      
sv.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
 
 
| Fields inherited from class java.awt.Polygon | 
npoints, xpoints, ypoints | 
 
 
 
| 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 | 
 
SurfacePolygon
public SurfacePolygon()
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)