Class Vector4f
java.lang.Object
org.lwjglx.util.vector.Vector
org.lwjglx.util.vector.Vector4f
- All Implemented Interfaces:
Serializable,ReadableVector,ReadableVector2f,ReadableVector3f,ReadableVector4f,WritableVector2f,WritableVector3f,WritableVector4f
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector4f()Vector4f(float float0, float float1, float float2, float float3) Vector4f(ReadableVector4f readableVector4f) -
Method Summary
Modifier and TypeMethodDescriptionstatic Vector4fstatic floatstatic floatfloatgetW()final floatgetX()final floatgetY()floatgetZ()floatload(FloatBuffer floatBuffer) negate()scale(float float0) voidset(float float0, float float1) voidset(float float0, float float1, float float2) voidset(float float0, float float1, float float2, float float3) set(ReadableVector4f readableVector4f) voidsetW(float float0) final voidsetX(float float0) final voidsetY(float float0) voidsetZ(float float0) store(FloatBuffer floatBuffer) static Vector4ftoString()translate(float float0, float float1, float float2, float float3) 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 -
w
public float w
-
-
Constructor Details
-
Vector4f
public Vector4f() -
Vector4f
-
Vector4f
public Vector4f(float float0, float float1, float float2, float float3)
-
-
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
public void set(float float0, float float1, float float2, float float3) - Specified by:
setin interfaceWritableVector4f
-
set
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquaredin interfaceReadableVector- Specified by:
lengthSquaredin classVector
-
translate
-
add
-
sub
-
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
-
setW
public void setW(float float0) - Specified by:
setWin interfaceWritableVector4f
-
getW
public float getW()- Specified by:
getWin interfaceReadableVector4f
-