Package org.lwjglx.util.vector
Class Vector3f
java.lang.Object
org.lwjglx.util.vector.Vector
org.lwjglx.util.vector.Vector3f
- All Implemented Interfaces:
Serializable,ReadableVector,ReadableVector2f,ReadableVector3f,WritableVector2f,WritableVector3f
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector3f()Vector3f(float float1, float float2, float float3) Vector3f(ReadableVector3f readableVector3f) -
Method Summary
Modifier and TypeMethodDescriptionstatic Vector3fstatic floatstatic Vector3fstatic floatfinal floatgetX()final floatgetY()floatgetZ()floatload(FloatBuffer floatBuffer) negate()scale(float float1) voidset(float float1, float float2) voidset(float float1, float float2, float float3) set(ReadableVector3f readableVector3f) final voidsetX(float float1) final voidsetY(float float1) voidsetZ(float float1) store(FloatBuffer floatBuffer) static Vector3ftoString()translate(float float1, float float2, float float3) Methods inherited from class java.lang.Object
clone, equals, finalize, 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 float1, float float2, float float3)
-
-
Method Details
-
set
public void set(float float1, float float2) - Specified by:
setin interfaceWritableVector2f
-
set
public void set(float float1, float float2, float float3) - 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 float1) - Specified by:
setXin interfaceWritableVector2f
-
setY
public final void setY(float float1) - Specified by:
setYin interfaceWritableVector2f
-
setZ
public void setZ(float float1) - Specified by:
setZin interfaceWritableVector3f
-
getZ
public float getZ()- Specified by:
getZin interfaceReadableVector3f
-