|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object PolygonXYZ
public class PolygonXYZ
a three-dimensional polygon
Constructor Summary | |
---|---|
PolygonXYZ(List<VectorXYZ> vertexLoop)
|
Method Summary | |
---|---|
TriangleXYZ |
asTriangleXYZ()
returns a triangle with the same vertices as this polygon. |
List<LineSegmentXYZ> |
getSegments()
|
SimplePolygonXZ |
getSimpleXZPolygon()
caller must check whether flattening will result in a simple planar polygon |
List<VectorXYZ> |
getVertexLoop()
returns the polygon's vertices. |
List<VectorXYZ> |
getVertices()
returns the polygon's vertices. |
PolygonXZ |
getXZPolygon()
|
PolygonXYZ |
reverse()
returns a reversed version of this polygon. |
int |
size()
returns the number of vertices in this polygon. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolygonXYZ(List<VectorXYZ> vertexLoop)
vertexLoop
- vertices defining the polygon;
first and last vertex must be equalMethod Detail |
---|
public List<VectorXYZ> getVertices()
getVertexLoop()
, there is no duplication
of the first/last vertex.
public List<VectorXYZ> getVertexLoop()
public int size()
getVertices()
.size().
public List<LineSegmentXYZ> getSegments()
public PolygonXZ getXZPolygon()
public SimplePolygonXZ getSimpleXZPolygon()
public TriangleXYZ asTriangleXYZ()
public PolygonXYZ reverse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |