public final class SurfaceVertex extends Object
SurfaceVertex
represents a vertex in 3D space.Modifier and Type | Field and Description |
---|---|
float |
x
The x coordinate
|
float |
y
The y coordinate
|
float |
z
The z coordinate
|
Constructor and Description |
---|
SurfaceVertex(float ix,
float iy,
float iz)
The constructor of
SurfaceVertex . |
Modifier and Type | Method and Description |
---|---|
Projector |
getProjector() |
static void |
invalidate()
Invalidates all vertices.
|
boolean |
isInvalid()
Determines whether this vertex is invalid, i.e has invalid coordinates value.
|
Point |
projection(Projector projector)
Gets the 2D projection of the vertex.
|
void |
setProjector(Projector projector)
Sets the projector to project this vertex.
|
void |
transform(Projector projector)
Transforms coordinate values to fit the scaling factor of the
projector.
|
public float x
public float y
public float z
public SurfaceVertex(float ix, float iy, float iz)
SurfaceVertex
.
The x and y coordinated must be in normalized form, i.e: in the range -10 .. +10.ix
- the x coordinateiy
- the y coordinateiz
- the z coordinatepublic final boolean isInvalid()
true
if this vertex is invalidpublic final Point projection(Projector projector)
public final void transform(Projector projector)
public static void invalidate()
public void setProjector(Projector projector)
projector
- the projectorpublic Projector getProjector()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics