java.lang.Object
org.spongepowered.math.vector.VectorNd
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<VectorNd>
,Vectord
public class VectorNd
extends Object
implements Vectord, Comparable<VectorNd>, Serializable, Cloneable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabs()
add
(double... v) ceil()
clone()
int
double
distance
(double... v) double
double
distanceSquared
(double... v) double
div
(double a) div
(double... v) div
(float a) double
dot
(double... v) double
boolean
floor()
int
floored
(int comp) double
get
(int comp) int
hashCode()
double
length()
double
max
(double... v) int
maxAxis()
min
(double... v) int
minAxis()
mul
(double a) mul
(double... v) mul
(float a) negate()
pow
(double power) pow
(float pow) project
(double... v) resize
(int size) round()
void
set
(int comp, double val) void
set
(int comp, float val) void
setZero()
int
size()
sub
(double... v) double[]
toArray()
toDouble()
toFloat()
toInt()
toLong()
toString()
-
Field Details
-
ZERO_2
-
ZERO_3
-
ZERO_4
-
-
Constructor Details
-
VectorNd
public VectorNd(int size) -
VectorNd
-
VectorNd
-
VectorNd
-
VectorNd
-
VectorNd
public VectorNd(double... v)
-
-
Method Details
-
size
public int size() -
get
public double get(int comp) -
floored
public int floored(int comp) -
set
public void set(int comp, float val) -
set
public void set(int comp, double val) -
setZero
public void setZero() -
resize
-
add
-
add
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
dot
-
dot
public double dot(double... v) -
project
-
project
-
pow
-
pow
-
ceil
-
floor
-
round
-
abs
-
negate
-
min
-
min
-
max
-
max
-
distanceSquared
-
distanceSquared
public double distanceSquared(double... v) -
distance
-
distance
public double distance(double... v) -
lengthSquared
public double lengthSquared()- Specified by:
lengthSquared
in interfaceVectord
-
length
public double length() -
normalize
-
minAxis
public int minAxis() -
maxAxis
public int maxAxis() -
toVector2
-
toVector3
-
toVector4
-
toArray
public double[] toArray() -
toInt
-
toLong
-
toFloat
-
toDouble
-
compareTo
- Specified by:
compareTo
in interfaceComparable<VectorNd>
-
equals
-
hashCode
public int hashCode() -
clone
-
toString
-