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