org.metasyntactic.graphics.shapes
Class Polygon

java.lang.Object
  |
  +--org.metasyntactic.graphics.shapes.Shape
        |
        +--org.metasyntactic.graphics.shapes.CartesianShape
              |
              +--org.metasyntactic.graphics.shapes.ReflectiveShape
                    |
                    +--org.metasyntactic.graphics.shapes.Polygon
Direct Known Subclasses:
ConvexPolygon

public abstract class Polygon
extends ReflectiveShape


Constructor Summary
Polygon()
          Creates a new instance of Polygon
 
Method Summary
abstract  Vector getNormal()
           
abstract  java.util.List getVertices()
           
abstract  boolean isInside(Point point)
           
abstract  void setVertices(java.util.List vertices)
           
 
Methods inherited from class org.metasyntactic.graphics.shapes.ReflectiveShape
getShadeModel, setShadeModel
 
Methods inherited from class org.metasyntactic.graphics.shapes.CartesianShape
getIntersection, getIntersections, getPosition, setPosition
 
Methods inherited from class org.metasyntactic.graphics.shapes.Shape
getColor, setColor, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Polygon

public Polygon()
Creates a new instance of Polygon

Method Detail

getVertices

public abstract java.util.List getVertices()

setVertices

public abstract void setVertices(java.util.List vertices)

getNormal

public abstract Vector getNormal()

isInside

public abstract boolean isInside(Point point)