Package org.lwjglx.util.vector
Class Vector3f
java.lang.Object
org.lwjglx.util.vector.Vector
org.lwjglx.util.vector.Vector3f
- All Implemented Interfaces:
java.io.Serializable,ReadableVector,ReadableVector2f,ReadableVector3f,WritableVector2f,WritableVector3f
public class Vector3f extends Vector implements java.io.Serializable, ReadableVector3f, WritableVector3f
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector3f()Vector3f(float float1, float float2, float float3)Vector3f(ReadableVector3f readableVector3f) -
Method Summary
Modifier and Type Method Description static Vector3fadd(Vector3f vector3f, Vector3f vector3f2, Vector3f vector3f3)static floatangle(Vector3f vector3f, Vector3f vector3f2)static Vector3fcross(Vector3f vector3f, Vector3f vector3f2, Vector3f vector3f3)static floatdot(Vector3f vector3f, Vector3f vector3f2)floatgetX()floatgetY()floatgetZ()floatlengthSquared()Vectorload(java.nio.FloatBuffer floatBuffer)Vectornegate()Vector3fnegate(Vector3f vector3f)Vector3fnormalise(Vector3f vector3f)Vectorscale(float float1)voidset(float float1, float float2)voidset(float float1, float float2, float float3)Vector3fset(ReadableVector3f readableVector3f)voidsetX(float float1)voidsetY(float float1)voidsetZ(float float1)Vectorstore(java.nio.FloatBuffer floatBuffer)static Vector3fsub(Vector3f vector3f, Vector3f vector3f2, Vector3f vector3f3)java.lang.StringtoString()Vector3ftranslate(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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
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
-