Package com.hypixel.hytale.math.vector
Class Vector3l
java.lang.Object
com.hypixel.hytale.math.vector.Vector3l
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Vector3lstatic final Vector3lstatic final Vector3l[]static final Vector3l[]static final Vector3l[][]static final Vector3l[]static final Vector3l[]static final BuilderCodec<Vector3l> static final Vector3lstatic final Vector3lstatic final Vector3lprivate intstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3lstatic final Vector3llonglonglongstatic final Vector3l -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(long x, long y, long z) static Vector3lstatic Vector3lassign(long v) assign(long[] v) assign(long x, long y, long z) clampLength(long maxLength) clone()static Vector3ldirectionTo(Vector3l from, Vector3l to) longdistanceSquaredTo(long x, long y, long z) longdoubledistanceTo(long x, long y, long z) doublelongdropHash()booleanlonggetX()longgetY()longgetZ()inthashCode()doublelength()static Vector3lstatic Vector3lnegate()scale(double s) scale(long s) setLength(long newLen) voidsetX(long x) voidsetY(long y) voidsetZ(long z) longsubtract(long x, long y, long z) toString()
-
Field Details
-
CODEC
-
ZERO
-
UP
-
POS_Y
-
DOWN
-
NEG_Y
-
FORWARD
-
NEG_Z
-
NORTH
-
BACKWARD
-
POS_Z
-
SOUTH
-
RIGHT
-
POS_X
-
EAST
-
LEFT
-
NEG_X
-
WEST
-
ALL_ONES
-
MIN
-
MAX
-
BLOCK_SIDES
-
BLOCK_EDGES
-
BLOCK_CORNERS
-
BLOCK_PARTS
-
CARDINAL_DIRECTIONS
-
x
public long x -
y
public long y -
z
public long z -
hash
private transient int hash
-
-
Constructor Details
-
Vector3l
public Vector3l() -
Vector3l
-
Vector3l
public Vector3l(long x, long y, long z)
-
-
Method Details
-
getX
public long getX() -
setX
public void setX(long x) -
getY
public long getY() -
setY
public void setY(long y) -
getZ
public long getZ() -
setZ
public void setZ(long z) -
assign
-
assign
-
assign
-
assign
-
add
-
add
-
addScaled
-
subtract
-
subtract
-
negate
-
scale
-
scale
-
scale
-
cross
-
cross
-
dot
-
distanceTo
-
distanceTo
public double distanceTo(long x, long y, long z) -
distanceSquaredTo
-
distanceSquaredTo
public long distanceSquaredTo(long x, long y, long z) -
normalize
-
length
public double length() -
squaredLength
public long squaredLength() -
setLength
-
clampLength
-
dropHash
-
clone
-
toVector3i
-
toVector3d
-
equals
-
hashCode
public int hashCode() -
toString
-
max
-
min
-
directionTo
-
add
-
add
-