|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectGeomRep.Vertex
public class Vertex
Vertex class that encapsulates all vertex related information. The coordinates contained in this class are physical coordinates, not the device (window) coordinates. (Window coordinates are integers, being pixel numbers.
Field Summary | |
---|---|
private float[] |
mCoordinates
Vertex coordinates (physical). |
Constructor Summary | |
---|---|
Vertex()
Default class constructor. |
|
Vertex(float[] coor)
Class constructor. |
|
Vertex(float x,
float y,
float z)
Class constructor. |
Method Summary | |
---|---|
float[] |
GetCoordArray()
Get the coordinates of the vertex. |
float |
GetX()
Get the X coordinate of the vertex. |
float |
GetY()
Get the Y coordinate of the vertex. |
float |
GetZ()
Get the Z coordinate of the vertex. |
void |
SetCoordinates(float[] coord)
Set the X, Y, Z coordinates of the vertex. |
void |
SetX(float val)
Set the X coordinate of the vertex. |
void |
SetY(float val)
Set the Y coordinate of the vertex. |
void |
SetZ(float val)
Set the Z coordinate of the vertex. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float[] mCoordinates
Constructor Detail |
---|
public Vertex()
public Vertex(float[] coor)
coor
- Coordinates for the vertex (X, Y, Z) as an array.public Vertex(float x, float y, float z)
x
- X coordinate for the vertex.y
- Y coordinate for the vertex.z
- Z coordinate for the vertex.Method Detail |
---|
public float GetX()
public void SetX(float val)
val
- X Coordinate of the vertex.public float GetY()
public void SetY(float val)
val
- Y Coordinate of the vertex.public float GetZ()
public void SetZ(float val)
val
- Z Coordinate of the vertex.public void SetCoordinates(float[] coord)
coord
- (X, Y, Z) coordinates.public float[] GetCoordArray()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |