net.nexttext.renderer.util
Class ClosedPolygon

java.lang.Object
  extended by net.nexttext.renderer.util.ClosedPolygon

public class ClosedPolygon
extends java.lang.Object

ClosedPolygon Created on 23. April 2006, 18:48

Author:
Pirx

Nested Class Summary
static class ClosedPolygon.Distance
          Distance helper class.
 
Constructor Summary
ClosedPolygon()
           
 
Method Summary
 void addPoint(processing.core.PVector point)
          Add a point to the polygon.
 void close()
          Close the polygon.
 java.util.List<processing.core.PVector> getPoints()
          Get the list of points.
 boolean isHole()
          Check if the polygon is a hole.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosedPolygon

public ClosedPolygon()
Method Detail

addPoint

public void addPoint(processing.core.PVector point)
Add a point to the polygon.

Parameters:
point -

close

public void close()
Close the polygon.


getPoints

public java.util.List<processing.core.PVector> getPoints()
Get the list of points.

Returns:
the list of points

isHole

public boolean isHole()
Check if the polygon is a hole.

Returns:
true if it is a hole, false if it is a filled shape