Package javaforce.gl
Class Vertex3
java.lang.Object
javaforce.gl.Vertex3
Store one vertex point (x,y,z) with texture coordinates (u,v).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public float x -
y
public float y -
z
public float z -
u
public float u -
v
public float v
-
-
Constructor Details
-
Vertex3
public Vertex3() -
Vertex3
public Vertex3(float x, float y, float z) -
Vertex3
public Vertex3(float x, float y, float z, float u, float v)
-
-
Method Details
-
set
-
set
-
sub
this = a - b -
cross
this = a X b -
normalize
public void normalize()normalize this vertex -
length
public float length() -
lengthSquared
public float lengthSquared() -
scale
public void scale(float s) -
dot
-
length
-