Modifier and Type | Field and Description |
---|---|
double |
x |
double |
y |
double |
z |
static Vec3d |
ZERO |
Constructor and Description |
---|
Vec3d(double xIn,
double yIn,
double zIn) |
Vec3d(Vec3i vector) |
Vec3d(Vector3f p_i225900_1_) |
Modifier and Type | Method and Description |
---|---|
Vec3d |
add(double x,
double y,
double z) |
Vec3d |
add(Vec3d vec) |
Vec3d |
align(java.util.EnumSet<Direction.Axis> axes) |
Vec3d |
crossProduct(Vec3d vec) |
double |
distanceTo(Vec3d vec) |
double |
dotProduct(Vec3d vec) |
boolean |
equals(java.lang.Object p_equals_1_) |
static Vec3d |
fromPitchYaw(float pitch,
float yaw) |
static Vec3d |
fromPitchYaw(Vec2f p_189984_0_) |
double |
getCoordinate(Direction.Axis axis) |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
Vec3d |
inverse() |
double |
length() |
double |
lengthSquared() |
Vec3d |
mul(double factorX,
double factorY,
double factorZ) |
Vec3d |
mul(Vec3d p_216369_1_) |
Vec3d |
normalize() |
Vec3d |
rotatePitch(float pitch) |
Vec3d |
rotateYaw(float yaw) |
Vec3d |
scale(double factor) |
double |
squareDistanceTo(double xIn,
double yIn,
double zIn) |
double |
squareDistanceTo(Vec3d vec) |
Vec3d |
subtract(double x,
double y,
double z) |
Vec3d |
subtract(Vec3d vec) |
Vec3d |
subtractReverse(Vec3d vec) |
java.lang.String |
toString() |
public static final Vec3d ZERO
public final double x
public final double y
public final double z
public Vec3d(double xIn, double yIn, double zIn)
public Vec3d(Vector3f p_i225900_1_)
public Vec3d(Vec3i vector)
public Vec3d normalize()
public double dotProduct(Vec3d vec)
public Vec3d subtract(double x, double y, double z)
public Vec3d add(double x, double y, double z)
public double distanceTo(Vec3d vec)
public double squareDistanceTo(Vec3d vec)
public double squareDistanceTo(double xIn, double yIn, double zIn)
public Vec3d scale(double factor)
public Vec3d inverse()
public Vec3d mul(double factorX, double factorY, double factorZ)
public double length()
public double lengthSquared()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public Vec3d rotatePitch(float pitch)
public Vec3d rotateYaw(float yaw)
public static Vec3d fromPitchYaw(float pitch, float yaw)
public Vec3d align(java.util.EnumSet<Direction.Axis> axes)
public double getCoordinate(Direction.Axis axis)