Class Vector2f
java.lang.Object
org.joml.Vector2f
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector2f()
Vector2f
(float arg0) Vector2f
(float[] arg0) Vector2f
(float arg0, float arg1) Vector2f
(int arg0, ByteBuffer arg1) Vector2f
(int arg0, FloatBuffer arg1) Vector2f
(ByteBuffer arg0) Vector2f
(FloatBuffer arg0) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
add
(float arg0, float arg1) float
ceil()
float
distance
(float arg0, float arg1) static float
distance
(float arg0, float arg1, float arg2, float arg3) float
float
distanceSquared
(float arg0, float arg1) static float
distanceSquared
(float arg0, float arg1, float arg2, float arg3) float
distanceSquared
(Vector2fc arg0) div
(float arg0) div
(float arg0, float arg1) float
boolean
equals
(float arg0, float arg1) 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
static float
lengthSquared
(float arg0, float arg1) int
int
mul
(float arg0) mul
(float arg0, float arg1) mulDirection
(Matrix3x2fc arg0) mulDirection
(Matrix3x2fc arg0, Vector2f arg1) mulPosition
(Matrix3x2fc arg0) mulPosition
(Matrix3x2fc arg0, Vector2f arg1) mulTranspose
(Matrix2fc arg0) mulTranspose
(Matrix2fc arg0, Vector2f arg1) negate()
normalize
(float arg0) void
readExternal
(ObjectInput arg0) round()
set
(double arg0) set
(double arg0, double arg1) set
(float arg0) set
(float[] arg0) set
(float arg0, float arg1) set
(int arg0, ByteBuffer arg1) set
(int arg0, FloatBuffer arg1) set
(ByteBuffer arg0) set
(FloatBuffer arg0) setComponent
(int arg0, float arg1) setFromAddress
(long arg0) sub
(float arg0, float arg1) toString()
toString
(NumberFormat numberFormat) void
writeExternal
(ObjectOutput arg0) float
x()
float
y()
zero()
-
Field Details
-
x
public float x -
y
public float y
-
-
Constructor Details
-
Vector2f
public Vector2f() -
Vector2f
public Vector2f(float arg0) -
Vector2f
public Vector2f(float arg0, float arg1) -
Vector2f
-
Vector2f
-
Vector2f
public Vector2f(float[] arg0) -
Vector2f
-
Vector2f
-
Vector2f
-
Vector2f
-
-
Method Details
-
x
-
y
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFromAddress
-
get
- Specified by:
get
in interfaceVector2fc
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
setComponent
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
get
-
getToAddress
- Specified by:
getToAddress
in interfaceVector2fc
-
perpendicular
-
sub
-
sub
-
sub
-
sub
-
dot
-
angle
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceVector2fc
-
lengthSquared
public static float lengthSquared(float arg0, float arg1) -
length
-
length
public static float length(float arg0, float arg1) -
distance
-
distanceSquared
- Specified by:
distanceSquared
in interfaceVector2fc
-
distance
-
distanceSquared
public float distanceSquared(float arg0, float arg1) - Specified by:
distanceSquared
in interfaceVector2fc
-
distance
public static float distance(float arg0, float arg1, float arg2, float arg3) -
distanceSquared
public static float distanceSquared(float arg0, float arg1, float arg2, float arg3) -
normalize
-
normalize
-
normalize
-
normalize
-
add
-
add
-
add
-
add
-
zero
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
negate
-
negate
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
div
-
div
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTranspose
in interfaceVector2fc
-
mulPosition
-
mulPosition
- Specified by:
mulPosition
in interfaceVector2fc
-
mulDirection
-
mulDirection
- Specified by:
mulDirection
in interfaceVector2fc
-
lerp
-
lerp
-
hashCode
-
equals
-
equals
-
equals
-
toString
-
toString
-
fma
-
fma
-
fma
-
fma
-
min
-
min
-
max
-
max
-
maxComponent
public int maxComponent()- Specified by:
maxComponent
in interfaceVector2fc
-
minComponent
public int minComponent()- Specified by:
minComponent
in interfaceVector2fc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
-
absolute
-
absolute
-