Package com.hypixel.hytale.math.vector
Class Vector3d
java.lang.Object
com.hypixel.hytale.math.vector.Vector3d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Vector3dstatic final Vector3dArrayCodecDeprecated.static final Vector3dstatic final Vector3d[]static final Vector3d[]static final Vector3d[][]static final Vector3d[]static final Vector3d[]static final BuilderCodec<Vector3d> static final Vector3dstatic final Vector3dstatic final Vector3dprivate intstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3dstatic final Vector3ddoubledoubledoublestatic final Vector3d -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(double value) add(double x, double y, double z) static Vector3dstatic Vector3dassign(double v) assign(double[] v) assign(double yaw, double pitch) assign(double x, double y, double z) assign(float[] v) ceil()clampLength(double maxLength) clipToZero(double epsilon) clone()booleancloseToZero(double epsilon) static Vector3ddirectionTo(Vector3d from, Vector3d to) static Vector3ddirectionTo(Vector3i from, Vector3d to) doubledistanceSquaredTo(double x, double y, double z) doubledoubledoubledistanceTo(double x, double y, double z) doubledoubledoubledropHash()booleanbooleanfloor()static StringdoublegetX()doublegetY()doublegetZ()inthashCode()booleanisFinite()booleanisInside(int x, int y, int z) doublelength()static Vector3dstatic Vector3dlerpUnclamped(Vector3d a, Vector3d b, double t) static Vector3dstatic Vector3dnegate()rotateX(float angle) rotateY(float angle) rotateZ(float angle) scale(double s) setLength(double newLen) voidsetX(double x) voidsetY(double y) voidsetZ(double z) doublesubtract(double value) subtract(double x, double y, double z) toString()
-
Field Details
-
CODEC
-
AS_ARRAY_CODEC
Deprecated. -
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 double x -
y
public double y -
z
public double z -
hash
private transient int hash
-
-
Constructor Details
-
Vector3d
public Vector3d() -
Vector3d
-
Vector3d
-
Vector3d
public Vector3d(double x, double y, double z) -
Vector3d
public Vector3d(float yaw, float pitch) -
Vector3d
-
-
Method Details
-
getX
public double getX() -
setX
public void setX(double x) -
getY
public double getY() -
setY
public void setY(double y) -
getZ
public double getZ() -
setZ
public void setZ(double z) -
assign
-
assign
-
assign
-
assign
-
assign
-
assign
-
add
-
add
-
add
-
add
-
addScaled
-
subtract
-
subtract
-
subtract
-
subtract
-
negate
-
scale
-
scale
-
cross
-
cross
-
dot
-
distanceTo
-
distanceTo
-
distanceTo
public double distanceTo(double x, double y, double z) -
distanceSquaredTo
-
distanceSquaredTo
-
distanceSquaredTo
public double distanceSquaredTo(double x, double y, double z) -
normalize
-
length
public double length() -
squaredLength
public double squaredLength() -
setLength
-
clampLength
-
rotateX
-
rotateY
-
rotateZ
-
floor
-
ceil
-
clipToZero
-
closeToZero
public boolean closeToZero(double epsilon) -
isInside
public boolean isInside(int x, int y, int z) -
isFinite
public boolean isFinite() -
dropHash
-
clone
-
equals
-
equals
-
hashCode
public int hashCode() -
toString
-
max
-
min
-
lerp
-
lerpUnclamped
-
directionTo
-
directionTo
-
add
-
add
-
formatShortString
-
toVector3i
-
toVector3f
-