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
-
Constructor Summary
ConstructorDescriptionVector3f()
Vector3f
(float float1, float float2, float float3) Vector3f
(ReadableVector3f readableVector3f) -
Method Summary
Modifier and TypeMethodDescriptionstatic Vector3f
static float
static Vector3f
static float
final float
getX()
final float
getY()
float
getZ()
float
load
(FloatBuffer floatBuffer) negate()
scale
(float float1) void
set
(float float1, float float2) void
set
(float float1, float float2, float float3) set
(ReadableVector3f readableVector3f) final void
setX
(float float1) final void
setY
(float float1) void
setZ
(float float1) store
(FloatBuffer floatBuffer) static Vector3f
toString()
translate
(float float1, float float2, float float3) 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
-
-
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:
set
in interfaceWritableVector2f
-
set
public void set(float float1, float float2, float float3) - Specified by:
set
in interfaceWritableVector3f
-
set
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceReadableVector
- Specified by:
lengthSquared
in classVector
-
translate
-
add
-
sub
-
cross
-
negate
-
negate
-
normalise
-
dot
-
angle
-
load
-
scale
-
store
- Specified by:
store
in interfaceReadableVector
- Specified by:
store
in classVector
-
toString
-
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
-