maspack.geometry
Class ConvexPolygon3d

java.lang.Object
  extended by maspack.geometry.Polygon3d
      extended by maspack.geometry.ConvexPolygon3d

public class ConvexPolygon3d
extends Polygon3d


Constructor Summary
ConvexPolygon3d()
           
ConvexPolygon3d(double[] coords)
           
ConvexPolygon3d(Point3d[] pnts)
           
 
Method Summary
 double area()
           
 void computeCentroid(Vector3d centroid)
           
 void computeNormal(Vector3d nrm)
           
 double getTolerance()
           
 void intersectHalfSpace(Plane plane)
           
 void setTolerance(double tol)
           
 
Methods inherited from class maspack.geometry.Polygon3d
addVertexAfter, appendVertex, clear, epsilonEquals, equals, getBounds, getFirstVertex, getLastVertex, getMaxCoordinate, getVertices, inverseTransform, isEmpty, numVertices, prependVertex, scan, set, set, set, toString, toString, toString, transform, updateBounds
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConvexPolygon3d

public ConvexPolygon3d()

ConvexPolygon3d

public ConvexPolygon3d(double[] coords)

ConvexPolygon3d

public ConvexPolygon3d(Point3d[] pnts)
Method Detail

getTolerance

public double getTolerance()

setTolerance

public void setTolerance(double tol)

area

public double area()

computeCentroid

public void computeCentroid(Vector3d centroid)

intersectHalfSpace

public void intersectHalfSpace(Plane plane)

computeNormal

public void computeNormal(Vector3d nrm)