public class Vertex
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
Color |
color
A RGB color value from 0 to 1.
|
java.util.Optional<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> |
normal
The normal (or direction) this vertex is facing.
|
org.apache.commons.math3.geometry.euclidean.twod.Vector2D |
uv |
org.apache.commons.math3.geometry.euclidean.threed.Vector3D |
vec |
| Constructor and Description |
|---|
Vertex(double x,
double y,
double z,
double u,
double v)
Creates new instance of vertex using separate doubles.
|
Vertex(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vertex,
org.apache.commons.math3.geometry.euclidean.twod.Vector2D uv)
Constructor for vertex
|
Vertex(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vertex,
org.apache.commons.math3.geometry.euclidean.twod.Vector2D uv,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D normal)
Constructor for vertex
|
| Modifier and Type | Method and Description |
|---|---|
protected Vertex |
clone() |
java.lang.String |
toString() |
public org.apache.commons.math3.geometry.euclidean.threed.Vector3D vec
public org.apache.commons.math3.geometry.euclidean.twod.Vector2D uv
public java.util.Optional<org.apache.commons.math3.geometry.euclidean.threed.Vector3D> normal
public Color color
public Vertex(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vertex,
org.apache.commons.math3.geometry.euclidean.twod.Vector2D uv,
org.apache.commons.math3.geometry.euclidean.threed.Vector3D normal)
vertex - coordinates in 3D space.uv - coordinates on the texture.normal - the vertex normal.public Vertex(org.apache.commons.math3.geometry.euclidean.threed.Vector3D vertex,
org.apache.commons.math3.geometry.euclidean.twod.Vector2D uv)
vertex - coordinates in 3D space.uv - coordinates on the texture.public Vertex(double x,
double y,
double z,
double u,
double v)
x - coordinate in space.y - coordinate in space.z - coordinate in space.u - coordinate on texture.v - coordinate on texture.public java.lang.String toString()
toString in class java.lang.Objectprotected Vertex clone()
clone in class java.lang.Object