コンストラクタと説明 |
---|
Vec3d(double xIn,
double yIn,
double zIn) |
Vec3d(Vec3i vector) |
Vec3d(Vector3f p_i225900_1_) |
修飾子とタイプ | メソッドと説明 |
---|---|
Vec3d |
add(double x,
double y,
double z)
Adds the specified x,y,z vector components to this vector and returns the resulting vector.
|
Vec3d |
add(Vec3d vec) |
Vec3d |
align(java.util.EnumSet<Direction.Axis> axes) |
Vec3d |
crossProduct(Vec3d vec)
Returns a new vector with the result of this vector x the specified vector.
|
double |
distanceTo(Vec3d vec)
Euclidean distance between this and the specified vector, returned as double.
|
double |
dotProduct(Vec3d vec) |
boolean |
equals(java.lang.Object p_equals_1_) |
static Vec3d |
fromPitchYaw(float pitch,
float yaw)
returns a Vec3d from given pitch and yaw degrees
|
static Vec3d |
fromPitchYaw(Vec2f p_189984_0_)
returns a Vec3d from given pitch and yaw degrees as Vec2f
|
double |
getCoordinate(Direction.Axis axis) |
double |
getX() |
double |
getY() |
double |
getZ() |
int |
hashCode() |
Vec3d |
inverse() |
double |
length()
Returns the length of the vector.
|
double |
lengthSquared() |
Vec3d |
mul(double factorX,
double factorY,
double factorZ) |
Vec3d |
mul(Vec3d p_216369_1_) |
Vec3d |
normalize()
Normalizes the vector to a length of 1 (except if it is the zero vector)
|
Vec3d |
rotatePitch(float pitch) |
Vec3d |
rotateYaw(float yaw) |
Vec3d |
scale(double factor) |
double |
squareDistanceTo(double xIn,
double yIn,
double zIn) |
double |
squareDistanceTo(Vec3d vec)
The square of the Euclidean distance between this and the specified vector.
|
Vec3d |
subtract(double x,
double y,
double z) |
Vec3d |
subtract(Vec3d vec) |
Vec3d |
subtractReverse(Vec3d vec)
Returns a new vector with the result of the specified vector minus this.
|
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 subtractReverse(Vec3d vec)
public Vec3d normalize()
public double dotProduct(Vec3d vec)
public Vec3d crossProduct(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
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public java.lang.String toString()
toString
クラス内 java.lang.Object
public Vec3d rotatePitch(float pitch)
public Vec3d rotateYaw(float yaw)
public static Vec3d fromPitchYaw(Vec2f p_189984_0_)
public static Vec3d fromPitchYaw(float pitch, float yaw)
public Vec3d align(java.util.EnumSet<Direction.Axis> axes)
public double getCoordinate(Direction.Axis axis)