public static class TriMesh.Node
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
data
A data object associated with this node.
|
int |
index
An integer index associated with this node.
|
Constructor and Description |
---|
TriMesh.Node(float x,
float y)
Constructs a node with the specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
TriMesh.Tri |
tri()
Returns a tri that references this node.
|
float |
x()
Returns the x coordinate of this node.
|
double |
xp()
Returns the x coordinate of this node as a perturbed double.
|
float |
y()
Returns the y coordinate of this node.
|
double |
yp()
Returns the y coordinate of this node as a perturbed double.
|
public int index
public java.lang.Object data
public TriMesh.Node(float x, float y)
x
- the x coordinate.y
- the y coordinate.public final float x()
public final float y()
public final double xp()
public final double yp()
public final TriMesh.Tri tri()
public java.lang.String toString()
toString
in class java.lang.Object