com.partnersoft.geometry
Class TriangleArray
java.lang.Object
com.partnersoft.geometry.TriangleArray
public class TriangleArray
- extends java.lang.Object
A list of triangles. Has some handy construction methods to help
with clipping, tesselation, etc.
- Author:
- Paul Reavis
Copyright 2004 Partner Software, Inc.
|
Constructor Summary |
TriangleArray()
Creates an empty triangle array with initial capacity 8. |
TriangleArray(int cap)
Creates a triangle array of the given initial capacity. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
vertices
public DoubleBuffer vertices
TriangleArray
public TriangleArray()
- Creates an empty triangle array with initial capacity 8.
TriangleArray
public TriangleArray(int cap)
- Creates a triangle array of the given initial capacity.
add
public void add(Triangle addMe)
add
public void add(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
addAll
public final void addAll(TriangleArray nother)
getTriangleCount
public int getTriangleCount()