- java.lang.Object
-
- org.spongepowered.math.vector.VectorNf
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<VectorNf>
,Vectorf
public class VectorNf extends Object implements Vectorf, Comparable<VectorNf>, Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Method Summary
-
-
-
Method Detail
-
size
public int size()
-
get
public float get(int comp)
-
floored
public int floored(int comp)
-
set
public void set(int comp, double val)
-
set
public void set(int comp, float val)
-
setZero
public void setZero()
-
resize
public VectorNf resize(int size)
-
add
public VectorNf add(float... v)
-
sub
public VectorNf sub(float... v)
-
mul
public VectorNf mul(double a)
-
mul
public VectorNf mul(float... v)
-
div
public VectorNf div(double a)
-
div
public VectorNf div(float... v)
-
dot
public float dot(VectorNf v)
-
dot
public float dot(float... v)
-
project
public VectorNf project(float... v)
-
pow
public VectorNf pow(double pow)
-
min
public VectorNf min(float... v)
-
max
public VectorNf max(float... v)
-
distanceSquared
public float distanceSquared(VectorNf v)
-
distanceSquared
public float distanceSquared(float... v)
-
distance
public float distance(VectorNf v)
-
distance
public float distance(float... v)
-
lengthSquared
public float lengthSquared()
- Specified by:
lengthSquared
in interfaceVectorf
-
toVector2
public Vector2f toVector2()
-
toVector3
public Vector3f toVector3()
-
toVector4
public Vector4f toVector4()
-
compareTo
public int compareTo(VectorNf v)
- Specified by:
compareTo
in interfaceComparable<VectorNf>
-
-