Class Vector4f
java.lang.Object
org.joml.Vector4f
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector4f()
Vector4f
(float arg0) Vector4f
(float[] arg0) Vector4f
(float arg0, float arg1, float arg2, float arg3) Vector4f
(int arg0, ByteBuffer arg1) Vector4f
(int arg0, FloatBuffer arg1) Vector4f
(ByteBuffer arg0) Vector4f
(FloatBuffer arg0) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
add
(float arg0, float arg1, float arg2, float arg3) float
float
ceil()
float
distance
(float arg0, float arg1, float arg2, float arg3) static float
distance
(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7) float
float
distanceSquared
(float arg0, float arg1, float arg2, float arg3) static float
distanceSquared
(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7) float
distanceSquared
(Vector4fc arg0) div
(float arg0) div
(float arg0, float arg1, float arg2, float arg3) float
dot
(float arg0, float arg1, float arg2, float arg3) float
boolean
equals
(float arg0, float arg1, float arg2, float arg3) boolean
boolean
floor()
float
get
(int arg0) get
(int arg0, ByteBuffer arg1) get
(int arg0, FloatBuffer arg1) get
(ByteBuffer arg0) get
(FloatBuffer arg0) getToAddress
(long arg0) int
hashCode()
boolean
isFinite()
float
length()
static float
length
(float arg0, float arg1, float arg2, float arg3) float
static float
lengthSquared
(float arg0, float arg1, float arg2, float arg3) static float
lengthSquared
(int arg0, int arg1, int arg2, int arg3) int
int
mul
(float arg0) mul
(float arg0, float arg1, float arg2, float arg3) mul
(Matrix4x3fc arg0) mul
(Matrix4x3fc arg0, Vector4f arg1) mulAffineTranspose
(Matrix4fc arg0, Vector4f arg1) mulProject
(Matrix4fc arg0) mulProject
(Matrix4fc arg0, Vector3f arg1) mulProject
(Matrix4fc arg0, Vector4f arg1) mulTranspose
(Matrix4fc arg0) mulTranspose
(Matrix4fc arg0, Vector4f arg1) negate()
normalize
(float arg0) normalize3
(Vector4f arg0) void
readExternal
(ObjectInput arg0) rotate
(Quaternionfc arg0) rotate
(Quaternionfc arg0, Vector4f arg1) rotateAbout
(float arg0, float arg1, float arg2, float arg3) rotateAxis
(float arg0, float arg1, float arg2, float arg3, Vector4f arg4) rotateX
(float arg0) rotateY
(float arg0) rotateZ
(float arg0) round()
set
(double arg0) set
(double arg0, double arg1, double arg2, double arg3) set
(float arg0) set
(float[] arg0) set
(float arg0, float arg1, float arg2) set
(float arg0, float arg1, float arg2, float arg3) set
(int arg0, ByteBuffer arg1) set
(int arg0, FloatBuffer arg1) set
(ByteBuffer arg0) set
(FloatBuffer arg0) setComponent
(int arg0, float arg1) setFromAddress
(long arg0) smoothStep
(Vector4fc arg0, float arg1, Vector4f arg2) sub
(float arg0, float arg1, float arg2, float arg3) toString()
toString
(NumberFormat numberFormat) float
w()
void
writeExternal
(ObjectOutput arg0) float
x()
float
y()
float
z()
zero()
-
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
-
Vector4f
-
Vector4f
-
Vector4f
-
Vector4f
-
Vector4f
public Vector4f(float arg0) -
Vector4f
public Vector4f(float arg0, float arg1, float arg2, float arg3) -
Vector4f
public Vector4f(float[] arg0) -
Vector4f
-
Vector4f
-
Vector4f
-
Vector4f
-
-
Method Details
-
x
-
y
-
z
-
w
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFromAddress
-
setComponent
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
get
-
getToAddress
- Specified by:
getToAddress
in interfaceVector4fc
-
sub
-
sub
-
sub
-
sub
-
add
-
add
-
add
-
add
-
fma
-
fma
-
fma
-
fma
-
mulAdd
-
mulAdd
-
mulAdd
-
mulAdd
-
mul
-
mul
-
div
-
div
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector4fc
-
mulAffine
-
mulAffineTranspose
- Specified by:
mulAffineTranspose
in interfaceVector4fc
-
mul
-
mul
-
mulProject
- Specified by:
mulProject
in interfaceVector4fc
-
mulProject
-
mulProject
- Specified by:
mulProject
in interfaceVector4fc
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
rotate
-
rotate
-
rotateAbout
-
rotateAxis
- Specified by:
rotateAxis
in interfaceVector4fc
-
rotateX
-
rotateX
-
rotateY
-
rotateY
-
rotateZ
-
rotateZ
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceVector4fc
-
lengthSquared
public static float lengthSquared(float arg0, float arg1, float arg2, float arg3) -
lengthSquared
public static float lengthSquared(int arg0, int arg1, int arg2, int arg3) -
length
-
length
public static float length(float arg0, float arg1, float arg2, float arg3) -
normalize
-
normalize
-
normalize
-
normalize
-
normalize3
-
normalize3
- Specified by:
normalize3
in interfaceVector4fc
-
distance
-
distance
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector4fc
-
distanceSquared
public float distanceSquared(float arg0, float arg1, float arg2, float arg3) - Specified by:
distanceSquared
in interfaceVector4fc
-
distance
public static float distance(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7) -
distanceSquared
public static float distanceSquared(float arg0, float arg1, float arg2, float arg3, float arg4, float arg5, float arg6, float arg7) -
dot
-
dot
-
angleCos
-
angle
-
zero
-
negate
-
negate
-
toString
-
toString
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
min
-
min
-
max
-
max
-
hashCode
-
equals
-
equals
-
equals
-
smoothStep
- Specified by:
smoothStep
in interfaceVector4fc
-
hermite
-
lerp
-
lerp
-
get
- Specified by:
get
in interfaceVector4fc
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector4fc
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector4fc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
-
absolute
-
absolute
-