|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Polygon3D
A class to represent a 3D polygon
Field Summary | |
Vector3D[] |
c
Vector3D[] c purpose : store the vertices of the polygon |
int |
count
int count purpose : total number of vertices in the polygon |
Constructor Summary | |
Polygon3D()
Default constructor purpose : initialize a polygon with no vertices |
|
Polygon3D(int total)
Constructor purpose : initialize a polygon with some vertices |
Method Summary | |
static Polygon3D |
transformPolygon(Matrix m,
Polygon3D x)
purpose : multiply each point of the polygon by a matrix |
static Polygon3D |
transformPolygonQ(Matrix m,
Polygon3D x)
purpose : multiply each point of the polygon by a matrix |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public Vector3D[] c
public int count
Constructor Detail |
public Polygon3D()
public Polygon3D(int total)
total
- total number of vertices in the polygonMethod Detail |
public static Polygon3D transformPolygonQ(Matrix m, Polygon3D x)
m
- Matrixx
- Polygon3Dpublic static Polygon3D transformPolygon(Matrix m, Polygon3D x)
m
- Matrixx
- Polygon3D
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |