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:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabs()
add
(float... v) ceil()
clone()
int
float
distance
(float... v) float
float
distanceSquared
(float... v) float
div
(double a) div
(float a) div
(float... v) float
dot
(float... v) float
boolean
floor()
int
floored
(int comp) float
get
(int comp) int
hashCode()
float
length()
float
max
(float... v) int
maxAxis()
min
(float... v) int
minAxis()
mul
(double a) mul
(float a) mul
(float... v) negate()
pow
(double pow) pow
(float power) project
(float... v) resize
(int size) round()
void
set
(int comp, double val) void
set
(int comp, float val) void
setZero()
int
size()
sub
(float... v) float[]
toArray()
toDouble()
toFloat()
toInt()
toLong()
toString()
-
Field Details
-
ZERO_2
-
ZERO_3
-
ZERO_4
-
-
Constructor Details
-
VectorNf
public VectorNf(int size) -
VectorNf
-
VectorNf
-
VectorNf
-
VectorNf
-
VectorNf
public VectorNf(float... v)
-
-
Method Details
-
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
-
add
-
add
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
dot
-
dot
public float dot(float... v) -
project
-
project
-
pow
-
pow
-
ceil
-
floor
-
round
-
abs
-
negate
-
min
-
min
-
max
-
max
-
distanceSquared
-
distanceSquared
public float distanceSquared(float... v) -
distance
-
distance
public float distance(float... v) -
lengthSquared
public float lengthSquared()- Specified by:
lengthSquared
in interfaceVectorf
-
length
public float length() -
normalize
-
minAxis
public int minAxis() -
maxAxis
public int maxAxis() -
toVector2
-
toVector3
-
toVector4
-
toArray
public float[] toArray() -
toInt
-
toLong
-
toFloat
-
toDouble
-
compareTo
- Specified by:
compareTo
in interfaceComparable<VectorNf>
-
equals
-
hashCode
public int hashCode() -
clone
-
toString
-