Package com.hypixel.hytale.math.vector
Class Vector3f
java.lang.Object
com.hypixel.hytale.math.vector.Vector3f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Vector3fstatic final Vector3fstatic final Vector3f[]static final Vector3f[]static final Vector3f[][]static final Vector3f[]static final Vector3f[]static final BuilderCodec<Vector3f> static final Vector3fstatic final Vector3fstatic final Vector3fprivate intstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final Vector3fstatic final BuilderCodec<Vector3f> static final Vector3fstatic final Vector3fstatic final Vector3ffloatfloatfloatstatic final Vector3f -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(float x, float y, float z) static Vector3fstatic Vector3fvoidaddPitch(float pitch) voidaddRoll(float roll) voidaddRotationOnAxis(Axis axis, int angle) voidaddYaw(float yaw) assign(float v) assign(float[] v) assign(float yaw, float pitch) assign(float x, float y, float z) ceil()clampLength(float maxLength) clipToZero(float epsilon) clone()booleancloseToZero(float epsilon) static Vector3fdirectionTo(Vector3f from, Vector3f to) floatdistanceSquaredTo(float x, float y, float z) floatfloatfloatdistanceTo(float x, float y, float z) floatfloatfloatdropHash()booleanbooleanvoidflipRotationOnAxis(Axis axis) floor()floatgetPitch()floatgetRoll()floatgetX()floatgetY()floatgetYaw()floatgetZ()inthashCode()booleanisFinite()booleanisInside(int x, int y, int z) floatlength()static Vector3fstatic Vector3fstatic Vector3fstatic Vector3flerpUnclamped(Vector3f a, Vector3f b, float t) static Vector3fstatic Vector3fstatic Vector3fstatic Vector3fnegate()rotateX(float angle) rotateY(float angle) rotateZ(float angle) scale(float s) setLength(float newLen) voidsetPitch(float pitch) voidsetRoll(float roll) voidsetX(float x) voidsetY(float y) voidsetYaw(float yaw) voidsetZ(float z) floatsubtract(float x, float y, float z) toString()
-
Field Details
-
CODEC
-
ROTATION
-
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
-
NaN
-
BLOCK_SIDES
-
BLOCK_EDGES
-
BLOCK_CORNERS
-
BLOCK_PARTS
-
CARDINAL_DIRECTIONS
-
x
public float x -
y
public float y -
z
public float z -
hash
private transient int hash
-
-
Constructor Details
-
Vector3f
public Vector3f() -
Vector3f
-
Vector3f
-
Vector3f
public Vector3f(float x, float y, float z) -
Vector3f
public Vector3f(float yaw, float pitch) -
Vector3f
-
-
Method Details
-
getX
public float getX() -
getPitch
public float getPitch() -
setX
public void setX(float x) -
setPitch
public void setPitch(float pitch) -
getY
public float getY() -
getYaw
public float getYaw() -
setY
public void setY(float y) -
setYaw
public void setYaw(float yaw) -
getZ
public float getZ() -
getRoll
public float getRoll() -
setZ
public void setZ(float z) -
setRoll
public void setRoll(float roll) -
assign
-
assign
-
assign
-
assign
-
assign
-
add
-
add
-
add
-
addPitch
public void addPitch(float pitch) -
addYaw
public void addYaw(float yaw) -
addRoll
public void addRoll(float roll) -
addScaled
-
subtract
-
subtract
-
subtract
-
addRotationOnAxis
-
flipRotationOnAxis
-
negate
-
scale
-
scale
-
cross
-
cross
-
dot
-
distanceTo
-
distanceTo
-
distanceTo
public float distanceTo(float x, float y, float z) -
distanceSquaredTo
-
distanceSquaredTo
-
distanceSquaredTo
public float distanceSquaredTo(float x, float y, float z) -
normalize
-
length
public float length() -
squaredLength
public float squaredLength() -
setLength
-
clampLength
-
rotateX
-
rotateY
-
rotateZ
-
floor
-
ceil
-
clipToZero
-
closeToZero
public boolean closeToZero(float epsilon) -
isInside
public boolean isInside(int x, int y, int z) -
isFinite
public boolean isFinite() -
dropHash
-
clone
-
equals
-
equals
-
hashCode
public int hashCode() -
toString
-
toVector3d
-
max
-
min
-
lerp
-
lerpUnclamped
-
lerpAngle
-
lerpAngle
-
directionTo
-
add
-
add
-
lookAt
-
lookAt
-