computational.geometry
Class Triangle

java.lang.Object
  extended by computational.geometry.Polygon
      extended by computational.geometry.SimplePolygon
          extended by computational.geometry.ConvexPolygon
              extended by computational.geometry.Triangle
All Implemented Interfaces:
Shape, java.io.Serializable, java.lang.Cloneable

public class Triangle
extends ConvexPolygon

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class computational.geometry.Polygon
Polygon.Edge, Polygon.Vertex
 
Field Summary
 
Fields inherited from class computational.geometry.Polygon
vertices
 
Constructor Summary
Triangle(Point p0, Point p1, Point p2)
           
 
Method Summary
 
Methods inherited from class computational.geometry.ConvexPolygon
addVertex, addVertex, contains, deleteVertex, deleteVertex, moveVertex, moveVertex
 
Methods inherited from class computational.geometry.SimplePolygon
diagonal, diagonal, ear
 
Methods inherited from class computational.geometry.Polygon
area, boundingBox, clear, clone, draw, drawLabels, drawPoints, equals, getBottomVertex, getEdge, getEdges, getFirstVertex, getIndices, getLabel, getLeftVertex, getNext, getPoints, getPrevious, getRightVertex, getTopVertex, getVertex, getVertices, indexOf, isClockwiseOriented, isConvex, isSimple, perimeter, restore, setLabel, size, toString, translate, updateExtremeVertices
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triangle

public Triangle(Point p0,
                Point p1,
                Point p2)