Package org.sunflow.math
Class Vector3
java.lang.Object
org.sunflow.math.Vector3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final Vector3static final Vector3static final Vector3decode(short n) static final Vector3final Vector3div(float d) final Vector3final floatdot(float vx, float vy, float vz) static final floatfinal shortencode()floatget(int i) final floatlength()final floatfinal Vector3mul(float s) final Vector3final Vector3negate()final Vector3final Vector3final Vector3final floatfinal Vector3set(float x, float y, float z) final Vector3static final Vector3final StringtoString()
-
Field Details
-
x
public float x -
y
public float y -
z
public float z
-
-
Constructor Details
-
Vector3
public Vector3() -
Vector3
public Vector3(float x, float y, float z) -
Vector3
-
-
Method Details
-
decode
-
decode
-
encode
public final short encode() -
get
public float get(int i) -
length
public final float length() -
lengthSquared
public final float lengthSquared() -
negate
-
negate
-
mul
-
mul
-
div
-
div
-
normalizeLength
public final float normalizeLength() -
normalize
-
normalize
-
set
-
set
-
dot
public final float dot(float vx, float vy, float vz) -
dot
-
cross
-
add
-
sub
-
toString
-