Class Vector3f
java.lang.Object
org.lwjglx.util.vector.Vector
org.lwjglx.util.vector.Vector3f
- All Implemented Interfaces:
Serializable,ReadableVector,ReadableVector2f,ReadableVector3f,WritableVector2f,WritableVector3f
public final class Vector3f
extends Vector
implements Serializable, ReadableVector3f, WritableVector3f
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector3f()Vector3f(float float0, float float1, float float2) Vector3f(ReadableVector3f readableVector3f) -
Method Summary
Modifier and TypeMethodDescriptionstatic Vector3fstatic floatstatic Vector3fstatic floatfinal floatgetX()final floatgetY()floatgetZ()floatload(FloatBuffer floatBuffer) negate()scale(float float0) voidset(float float0, float float1) voidset(float float0, float float1, float float2) set(ReadableVector3f readableVector3f) final voidsetX(float float0) final voidsetY(float float0) voidsetZ(float float0) store(FloatBuffer floatBuffer) static Vector3ftoString()translate(float float0, float float1, float float2) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.lwjglx.util.vector.ReadableVector
length
-
Field Details
-
x
public float x -
y
public float y -
z
public float z
-
-
Constructor Details
-
Vector3f
public Vector3f() -
Vector3f
-
Vector3f
public Vector3f(float float0, float float1, float float2)
-
-
Method Details
-
set
public void set(float float0, float float1) - Specified by:
setin interfaceWritableVector2f
-
set
public void set(float float0, float float1, float float2) - Specified by:
setin interfaceWritableVector3f
-
set
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquaredin interfaceReadableVector- Specified by:
lengthSquaredin classVector
-
translate
-
add
-
sub
-
cross
-
negate
-
negate
-
normalise
-
dot
-
angle
-
load
-
scale
-
store
- Specified by:
storein interfaceReadableVector- Specified by:
storein classVector
-
toString
-
getX
public final float getX()- Specified by:
getXin interfaceReadableVector2f
-
getY
public final float getY()- Specified by:
getYin interfaceReadableVector2f
-
setX
public final void setX(float float0) - Specified by:
setXin interfaceWritableVector2f
-
setY
public final void setY(float float0) - Specified by:
setYin interfaceWritableVector2f
-
setZ
public void setZ(float float0) - Specified by:
setZin interfaceWritableVector3f
-
getZ
public float getZ()- Specified by:
getZin interfaceReadableVector3f
-