- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Vector4l(double x, double y, double z, double w)
Vector4l(long x, long y, long z, long w)
Vector4l(Vector2l v)
Vector4l(Vector2l v, double z, double w)
Vector4l(Vector2l v, long z, long w)
Vector4l(Vector3l v)
Vector4l(Vector3l v, double w)
Vector4l(Vector3l v, long w)
Vector4l(VectorNl v)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector4l
abs()
Vector4l
add(double x, double y, double z, double w)
Vector4l
add(long x, long y, long z, long w)
Vector4l
add(Vector4l v)
int
compareTo(Vector4l v)
double
distance(double x, double y, double z, double w)
double
distance(long x, long y, long z, long w)
double
distance(Vector4l v)
long
distanceSquared(double x, double y, double z, double w)
long
distanceSquared(long x, long y, long z, long w)
long
distanceSquared(Vector4l v)
Vector4l
div(double a)
Vector4l
div(double x, double y, double z, double w)
Vector4l
div(long a)
Vector4l
div(long x, long y, long z, long w)
Vector4l
div(Vector4l v)
long
dot(double x, double y, double z, double w)
long
dot(long x, long y, long z, long w)
long
dot(Vector4l v)
boolean
equals(Object other)
static Vector4l
from(long n)
static Vector4l
from(long x, long y, long z, long w)
int
hashCode()
double
length()
long
lengthSquared()
Vector4l
max(double x, double y, double z, double w)
Vector4l
max(long x, long y, long z, long w)
Vector4l
max(Vector4l v)
int
maxAxis()
Return the axis with the maximum value.Vector4l
min(double x, double y, double z, double w)
Vector4l
min(long x, long y, long z, long w)
Vector4l
min(Vector4l v)
int
minAxis()
Return the axis with the minimal value.Vector4l
mul(double a)
Vector4l
mul(double x, double y, double z, double w)
Vector4l
mul(long a)
Vector4l
mul(long x, long y, long z, long w)
Vector4l
mul(Vector4l v)
Vector4l
negate()
Vector4l
pow(double pow)
Vector4l
pow(long power)
Vector4l
project(double x, double y, double z, double w)
Vector4l
project(long x, long y, long z, long w)
Vector4l
project(Vector4l v)
Vector4l
sub(double x, double y, double z, double w)
Vector4l
sub(long x, long y, long z, long w)
Vector4l
sub(Vector4l v)
long[]
toArray()
Vector4d
toDouble()
Vector4f
toFloat()
Vector4i
toInt()
Vector4l
toLong()
String
toString()
Vector2l
toVector2()
Vector3l
toVector3()
VectorNl
toVectorN()
long
w()
long
x()
long
y()
long
z()
-
-
-
Constructor Detail
-
Vector4l
public Vector4l(Vector2l v)
-
Vector4l
public Vector4l(Vector2l v, double z, double w)
-
Vector4l
public Vector4l(Vector2l v, long z, long w)
-
Vector4l
public Vector4l(Vector3l v)
-
Vector4l
public Vector4l(Vector3l v, double w)
-
Vector4l
public Vector4l(Vector3l v, long w)
-
Vector4l
public Vector4l(VectorNl v)
-
Vector4l
public Vector4l(double x, double y, double z, double w)
-
Vector4l
public Vector4l(long x, long y, long z, long w)
-
-
Method Detail
-
x
public long x()
-
y
public long y()
-
z
public long z()
-
w
public long w()
-
add
public Vector4l add(double x, double y, double z, double w)
-
add
public Vector4l add(long x, long y, long z, long w)
-
sub
public Vector4l sub(double x, double y, double z, double w)
-
sub
public Vector4l sub(long x, long y, long z, long w)
-
mul
public Vector4l mul(double a)
-
mul
public Vector4l mul(double x, double y, double z, double w)
-
mul
public Vector4l mul(long x, long y, long z, long w)
-
div
public Vector4l div(double a)
-
div
public Vector4l div(double x, double y, double z, double w)
-
div
public Vector4l div(long x, long y, long z, long w)
-
dot
public long dot(Vector4l v)
-
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
public Vector4l project(double x, double y, double z, double w)
-
project
public Vector4l project(long x, long y, long z, long w)
-
pow
public Vector4l pow(double pow)
-
min
public Vector4l min(double x, double y, double z, double w)
-
min
public Vector4l min(long x, long y, long z, long w)
-
max
public Vector4l max(double x, double y, double z, double w)
-
max
public Vector4l max(long x, long y, long z, long w)
-
distanceSquared
public long distanceSquared(Vector4l v)
-
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
public double distance(Vector4l v)
-
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
-
minAxis
public int minAxis()
Return the axis with the minimal value.
-
maxAxis
public int maxAxis()
Return the axis with the maximum value.
-
toVector2
public Vector2l toVector2()
-
toVector3
public Vector3l toVector3()
-
toVectorN
public VectorNl toVectorN()
-
compareTo
public int compareTo(Vector4l v)
- Specified by:
compareTo
in interfaceComparable<Vector4l>
-
from
public static Vector4l from(long n)
-
from
public static Vector4l from(long x, long y, long z, long w)
-
-