Class Vector2d
java.lang.Object
org.joml.Vector2d
- All Implemented Interfaces:
Externalizable,Serializable,Vector2dc
- Direct Known Subclasses:
MapProjection.ProjectedMeters
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVector2d()Vector2d(double arg0) Vector2d(double[] arg0) Vector2d(double arg0, double arg1) Vector2d(float[] floats) Vector2d(int arg0, ByteBuffer arg1) Vector2d(int arg0, DoubleBuffer arg1) Vector2d(ByteBuffer arg0) Vector2d(DoubleBuffer arg0) -
Method Summary
Modifier and TypeMethodDescriptionabsolute()add(double arg0, double arg1) doubleceil()doubledistance(double arg0, double arg1) static doubledistance(double arg0, double arg1, double arg2, double arg3) doubledoubledoubledistanceSquared(double arg0, double arg1) static doubledistanceSquared(double arg0, double arg1, double arg2, double arg3) doubledistanceSquared(Vector2dc arg0) doubledistanceSquared(Vector2fc arg0) div(double arg0) div(double arg0, double arg1) doublebooleanequals(double arg0, double arg1) booleanbooleanfloor()doubleget(int arg0) get(int arg0, ByteBuffer arg1) get(int arg0, DoubleBuffer arg1) get(ByteBuffer arg0) get(DoubleBuffer arg0) getToAddress(long arg0) inthashCode()booleanisFinite()doublelength()static doublelength(double arg0, double arg1) doublestatic doublelengthSquared(double arg0, double arg1) intintmul(double arg0) mul(double arg0, double arg1) mulDirection(Matrix3x2dc arg0) mulDirection(Matrix3x2dc arg0, Vector2d arg1) mulPosition(Matrix3x2dc arg0) mulPosition(Matrix3x2dc arg0, Vector2d arg1) mulTranspose(Matrix2dc arg0) mulTranspose(Matrix2dc arg0, Vector2d arg1) mulTranspose(Matrix2fc arg0) mulTranspose(Matrix2fc arg0, Vector2d arg1) negate()normalize(double arg0) voidreadExternal(ObjectInput arg0) round()set(double arg0) set(double[] arg0) set(double arg0, double arg1) set(float[] floats) set(int arg0, ByteBuffer arg1) set(int arg0, DoubleBuffer arg1) set(ByteBuffer arg0) set(DoubleBuffer arg0) setComponent(int arg0, double arg1) setFromAddress(long arg0) sub(double arg0, double arg1) toString()toString(NumberFormat numberFormat) voidwriteExternal(ObjectOutput arg0) doublex()doubley()zero()
-
Field Details
-
x
public double x -
y
public double y
-
-
Constructor Details
-
Vector2d
public Vector2d() -
Vector2d
public Vector2d(double arg0) -
Vector2d
public Vector2d(double arg0, double arg1) -
Vector2d
-
Vector2d
-
Vector2d
-
Vector2d
public Vector2d(double[] arg0) -
Vector2d
public Vector2d(float[] floats) -
Vector2d
-
Vector2d
-
Vector2d
-
Vector2d
-
-
Method Details
-
x
-
y
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
set
-
setFromAddress
-
get
- Specified by:
getin interfaceVector2dc- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
setComponent
- Throws:
IllegalArgumentException
-
get
-
get
-
get
-
get
-
getToAddress
- Specified by:
getToAddressin interfaceVector2dc
-
perpendicular
-
sub
-
sub
-
sub
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
div
-
div
-
div
-
div
-
mul
-
mul
-
mul
-
mul
-
mulTranspose
-
mulTranspose
- Specified by:
mulTransposein interfaceVector2dc
-
mulTranspose
-
mulTranspose
- Specified by:
mulTransposein interfaceVector2dc
-
mulPosition
-
mulPosition
- Specified by:
mulPositionin interfaceVector2dc
-
mulDirection
-
mulDirection
- Specified by:
mulDirectionin interfaceVector2dc
-
dot
-
angle
-
lengthSquared
public double lengthSquared()- Specified by:
lengthSquaredin interfaceVector2dc
-
lengthSquared
public static double lengthSquared(double arg0, double arg1) -
length
-
length
public static double length(double arg0, double arg1) -
distance
-
distanceSquared
- Specified by:
distanceSquaredin interfaceVector2dc
-
distance
-
distanceSquared
- Specified by:
distanceSquaredin interfaceVector2dc
-
distance
-
distanceSquared
public double distanceSquared(double arg0, double arg1) - Specified by:
distanceSquaredin interfaceVector2dc
-
distance
public static double distance(double arg0, double arg1, double arg2, double arg3) -
distanceSquared
public static double distanceSquared(double arg0, double arg1, double arg2, double arg3) -
normalize
-
normalize
-
normalize
-
normalize
-
add
-
add
-
add
-
add
-
add
-
add
-
zero
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
negate
-
negate
-
lerp
-
lerp
-
hashCode
-
equals
-
equals
-
equals
-
toString
-
toString
-
fma
-
fma
-
fma
-
fma
-
min
-
min
-
max
-
max
-
maxComponent
public int maxComponent()- Specified by:
maxComponentin interfaceVector2dc
-
minComponent
public int minComponent()- Specified by:
minComponentin interfaceVector2dc
-
floor
-
floor
-
ceil
-
ceil
-
round
-
round
-
isFinite
-
absolute
-
absolute
-