java.lang.Object
org.spongepowered.math.vector.Vector4l
- All Implemented Interfaces:
Serializable
,Comparable<Vector4l>
,Vectorl
@Immutable
public final class Vector4l
extends Object
implements Vectorl, Comparable<Vector4l>, Serializable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabs()
add
(double x, double y, double z, double w) add
(long x, long y, long z, long w) int
double
distance
(double x, double y, double z, double w) double
distance
(long x, long y, long z, long w) double
long
distanceSquared
(double x, double y, double z, double w) long
distanceSquared
(long x, long y, long z, long w) long
div
(double a) div
(double x, double y, double z, double w) div
(long a) div
(long x, long y, long z, long w) long
dot
(double x, double y, double z, double w) long
dot
(long x, long y, long z, long w) long
boolean
static Vector4l
from
(long n) static Vector4l
from
(long x, long y, long z, long w) int
hashCode()
double
length()
long
max
(double x, double y, double z, double w) max
(long x, long y, long z, long w) int
maxAxis()
Return the axis with the maximum value.min
(double x, double y, double z, double w) min
(long x, long y, long z, long w) int
minAxis()
Return the axis with the minimal value.mul
(double a) mul
(double x, double y, double z, double w) mul
(long a) mul
(long x, long y, long z, long w) negate()
pow
(double pow) pow
(long power) project
(double x, double y, double z, double w) project
(long x, long y, long z, long w) sub
(double x, double y, double z, double w) sub
(long x, long y, long z, long w) long[]
toArray()
toDouble()
toFloat()
toInt()
toLong()
toString()
long
w()
withW
(double w) withW
(long w) withX
(double x) withX
(long x) withY
(double y) withY
(long y) withZ
(double z) withZ
(long z) long
x()
long
y()
long
z()
-
Field Details
-
ZERO
-
UNIT_X
-
UNIT_Y
-
UNIT_Z
-
UNIT_W
-
ONE
-
-
Constructor Details
-
Vector4l
-
Vector4l
-
Vector4l
-
Vector4l
-
Vector4l
-
Vector4l
-
Vector4l
-
Vector4l
public Vector4l(double x, double y, double z, double w) -
Vector4l
public Vector4l(long x, long y, long z, long w)
-
-
Method Details
-
x
public long x() -
withX
-
withX
-
y
public long y() -
withY
-
withY
-
z
public long z() -
withZ
-
withZ
-
w
public long w() -
withW
-
withW
-
add
-
add
-
add
-
sub
-
sub
-
sub
-
mul
-
mul
-
mul
-
mul
-
mul
-
div
-
div
-
div
-
div
-
div
-
dot
-
dot
public long dot(double x, double y, double z, double w) -
dot
public long dot(long x, long y, long z, long w) -
project
-
project
-
project
-
pow
-
pow
-
abs
-
negate
-
min
-
min
-
min
-
max
-
max
-
max
-
distanceSquared
-
distanceSquared
public long distanceSquared(double x, double y, double z, double w) -
distanceSquared
public long distanceSquared(long x, long y, long z, long w) -
distance
-
distance
public double distance(double x, double y, double z, double w) -
distance
public double distance(long x, long y, long z, long w) -
lengthSquared
public long lengthSquared()- Specified by:
lengthSquared
in interfaceVectorl
-
length
public double length() -
minAxis
public int minAxis()Return the axis with the minimal value. -
maxAxis
public int maxAxis()Return the axis with the maximum value. -
toVector2
-
toVector3
-
toVectorN
-
toArray
public long[] toArray() -
toInt
-
toLong
-
toFloat
-
toDouble
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Vector4l>
-
equals
-
hashCode
public int hashCode() -
toString
-
from
-
from
-