*/
public Point2D onScreenCoordinate;
+
+ /**
+ * Coordinate within texture.
+ */
+ public Point2D textureCoordinate;
+
+
/**
* The frame number when this vertex was last transformed.
*/
private int lastTransformedFrame;
public Vertex() {
- coordinate = new Point3D();
- transformedCoordinate = new Point3D();
- onScreenCoordinate = new Point2D();
+ this(new Point3D());
}
public Vertex(final Point3D location) {
+ this(location, null);
+ }
+
+ public Vertex(final Point3D location, Point2D textureCoordinate) {
coordinate = location;
transformedCoordinate = new Point3D();
onScreenCoordinate = new Point2D();
+ this.textureCoordinate = textureCoordinate;
}