public class Vec3d
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
xCoord |
double |
yCoord |
double |
zCoord |
static Vec3d |
ZERO |
Constructor and Description |
---|
Vec3d(double x,
double y,
double z) |
Vec3d(Vec3i vector) |
Modifier and Type | Method and Description |
---|---|
Vec3d |
add(Vec3d vec) |
Vec3d |
addVector(double x,
double y,
double z) |
Vec3d |
crossProduct(Vec3d vec) |
double |
distanceTo(Vec3d vec) |
double |
dotProduct(Vec3d vec) |
boolean |
equals(java.lang.Object p_equals_1_) |
static Vec3d |
fromPitchYaw(float p_189986_0_,
float p_189986_1_) |
static Vec3d |
fromPitchYawVector(Vec2f p_189984_0_) |
Vec3d |
getIntermediateWithXValue(Vec3d vec,
double x) |
Vec3d |
getIntermediateWithYValue(Vec3d vec,
double y) |
Vec3d |
getIntermediateWithZValue(Vec3d vec,
double z) |
int |
hashCode() |
double |
lengthSquared() |
double |
lengthVector() |
Vec3d |
normalize() |
Vec3d |
rotatePitch(float pitch) |
Vec3d |
rotateYaw(float yaw) |
Vec3d |
scale(double p_186678_1_) |
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 xCoord
public final double yCoord
public final double zCoord
public Vec3d(double x, double y, double z)
public Vec3d(Vec3i vector)
public Vec3d normalize()
public double dotProduct(Vec3d vec)
public Vec3d subtract(double x, double y, double z)
public Vec3d addVector(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 p_186678_1_)
public double lengthVector()
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 p_189986_0_, float p_189986_1_)