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) floatceil()floatdistance(float arg0, float arg1) static floatdistance(float arg0, float arg1, float arg2, float arg3) floatfloatdistanceSquared(float arg0, float arg1) static floatdistanceSquared(float arg0, float arg1, float arg2, float arg3) floatdistanceSquared(Vector2fc arg0) div(float arg0) div(float arg0, float arg1) floatbooleanequals(float arg0, float arg1) booleanbooleanfloor()floatget(int arg0) get(int arg0, ByteBuffer arg1) get(int arg0, FloatBuffer arg1) get(ByteBuffer arg0) get(FloatBuffer arg0) getToAddress(long arg0) inthashCode()booleanisFinite()floatlength()static floatlength(float arg0, float arg1) floatstatic floatlengthSquared(float arg0, float arg1) intintmul(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) voidreadExternal(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) voidwriteExternal(ObjectOutput arg0) floatx()floaty()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:
getin interfaceVector2fc- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
setComponent
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
get
-
getToAddress
- Specified by:
getToAddressin interfaceVector2fc
-
perpendicular
-
sub
-
sub
-
sub
-
sub
-
dot
-
angle
-
lengthSquared
public float lengthSquared()- Specified by:
lengthSquaredin interfaceVector2fc
-
lengthSquared
public static float lengthSquared(float arg0, float arg1) -
length
-
length
public static float length(float arg0, float arg1) -
distance
-
distanceSquared
- Specified by:
distanceSquaredin interfaceVector2fc
-
distance
-
distanceSquared
public float distanceSquared(float arg0, float arg1) - Specified by:
distanceSquaredin 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:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
negate
-
negate
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
div
-
div
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTransposein interfaceVector2fc
-
mulPosition
-
mulPosition
- Specified by:
mulPositionin interfaceVector2fc
-
mulDirection
-
mulDirection
- Specified by:
mulDirectionin interfaceVector2fc
-
lerp
-
lerp
-
hashCode
-
equals
-
equals
-
equals
-
toString
-
toString
-
fma
-
fma
-
fma
-
fma
-
min
-
min
-
max
-
max
-
maxComponent
public int maxComponent()- Specified by:
maxComponentin interfaceVector2fc
-
minComponent
public int minComponent()- Specified by:
minComponentin interfaceVector2fc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
-
absolute
-
absolute
-