org.jagatoo.util.geometry
Class Polygon
java.lang.Object
org.jagatoo.util.geometry.Polygon
public class Polygon
- extends java.lang.Object
Simple class encapsulating a set of points which define the outline of a coplanar
polygon. Usually this is a triagle or a quad.
|
Constructor Summary |
Polygon()
|
Polygon(java.util.List<float[]> vertices)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Polygon
public Polygon(java.util.List<float[]> vertices)
Polygon
public Polygon()
getVertices
public java.util.List<float[]> getVertices()
add
public void add(float[] v)
add
public void add(float x,
float y,
float z)
contains
public boolean contains(float[] point)
getAsTriangles
public java.util.List<Polygon> getAsTriangles()
- Returns:
- a list of triangles
print
public void print()