Package org.lwjglx.util.vector
Class Vector4f
java.lang.Object
org.lwjglx.util.vector.Vector
org.lwjglx.util.vector.Vector4f
- All Implemented Interfaces:
java.io.Serializable
,ReadableVector
,ReadableVector2f
,ReadableVector3f
,ReadableVector4f
,WritableVector2f
,WritableVector3f
,WritableVector4f
public class Vector4f extends Vector implements java.io.Serializable, ReadableVector4f, WritableVector4f
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Vector4f()
Vector4f(float float1, float float2, float float3, float float4)
Vector4f(ReadableVector4f readableVector4f)
-
Method Summary
Modifier and Type Method Description static Vector4f
add(Vector4f vector4f, Vector4f vector4f2, Vector4f vector4f3)
static float
angle(Vector4f vector4f, Vector4f vector4f2)
static float
dot(Vector4f vector4f, Vector4f vector4f2)
float
getW()
float
getX()
float
getY()
float
getZ()
float
lengthSquared()
Vector
load(java.nio.FloatBuffer floatBuffer)
Vector
negate()
Vector4f
negate(Vector4f vector4f)
Vector4f
normalise(Vector4f vector4f)
Vector
scale(float float1)
void
set(float float1, float float2)
void
set(float float1, float float2, float float3)
void
set(float float1, float float2, float float3, float float4)
Vector4f
set(ReadableVector4f readableVector4f)
void
setW(float float1)
void
setX(float float1)
void
setY(float float1)
void
setZ(float float1)
Vector
store(java.nio.FloatBuffer floatBuffer)
static Vector4f
sub(Vector4f vector4f, Vector4f vector4f2, Vector4f vector4f3)
java.lang.String
toString()
Vector4f
translate(float float1, float float2, float float3, float float4)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 float1, float float2, float float3, float float4)
-
-
Method Details
-
set
public void set(float float1, float float2)- Specified by:
set
in interfaceWritableVector2f
-
set
public void set(float float1, float float2, float float3)- Specified by:
set
in interfaceWritableVector3f
-
set
public void set(float float1, float float2, float float3, float float4)- Specified by:
set
in interfaceWritableVector4f
-
set
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceReadableVector
- Specified by:
lengthSquared
in classVector
-
translate
-
add
-
sub
-
negate
-
negate
-
normalise
-
dot
-
angle
-
load
-
scale
-
store
- Specified by:
store
in interfaceReadableVector
- Specified by:
store
in classVector
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
getX
public final float getX()- Specified by:
getX
in interfaceReadableVector2f
-
getY
public final float getY()- Specified by:
getY
in interfaceReadableVector2f
-
setX
public final void setX(float float1)- Specified by:
setX
in interfaceWritableVector2f
-
setY
public final void setY(float float1)- Specified by:
setY
in interfaceWritableVector2f
-
setZ
public void setZ(float float1)- Specified by:
setZ
in interfaceWritableVector3f
-
getZ
public float getZ()- Specified by:
getZ
in interfaceReadableVector3f
-
setW
public void setW(float float1)- Specified by:
setW
in interfaceWritableVector4f
-
getW
public float getW()- Specified by:
getW
in interfaceReadableVector4f
-