Uses of Class
net.risingworld.api.utils.Vector3d
Packages that use Vector3d
-
Uses of Vector3d in net.risingworld.api.utils
Fields in net.risingworld.api.utils declared as Vector3dModifier and TypeFieldDescriptionstatic final Vector3dVector3d.BACKA unit vector along the -Z axis (backward direction)static final Vector3dVector3d.DOWNA unit vector along the -Y axis (down direction)static final Vector3dVector3d.FORWARDA unit vector along the Z axis (forward direction)static final Vector3dVector3d.LEFTA unit vector along the -X axis (left direction)static final Vector3dVector3d.ONEA vector with values 1, 1, 1static final Vector3dVector3d.RIGHTA unit vector along the X axis (right direction)static final Vector3dVector3d.UPA unit vector along the Y axis (up direction)static final Vector3dVector3d.ZEROA vector with values 0, 0, 0Methods in net.risingworld.api.utils that return Vector3dModifier and TypeMethodDescriptionVector3d.add(double addX, double addY, double addZ) Creates a new vector with the same values of this vector and adds the provided values.Creates a new vector with the same values of this vector and adds the values of the provided vector.Vector3d.addLocal(double addX, double addY, double addZ) Adds the provided values to the values of this vector.Adds the values of the provided vector to the values of this vector.Vector3d.copy()Creates a copy of this vector.Creates a new vector containing the cross product of this vector and another vector.Vector3d.crossLocal(double v2x, double v2y, double v2z) Calculates the cross product of this vector and the provided coordinates.Vector3d.crossLocal(Vector3d other) Calculates the cross product of this vector and another vector.Creates a new vector with the same values of this vector and divides the values of the provided vector.Vector3d.divideLocal(double scalar) Vector3d.divideLocal(Vector3d other) Vector3d.fromString(String input) Vector3d.interpolate(Vector3d startVector, Vector3d finalVector, double mu) Creates a new vector containing the interpolated values between the start vector and the final vector.Vector3d.interpolateLocal(Vector3d finalVector, double mu) Interpolates this vector to the provided final vector, e.g if this vector is (0, 5, 10), and the final vector is (-10, 0, 10), the result (by using a mu-value of 0.5d) would be (-5, 2.5, 10)Vector3d.interpolateLocal(Vector3d startVector, Vector3d finalVector, double mu) Interpolates between the provided start and end vector and stores the result in this vector.Vector3d.mult(double scalar) Creates a new vector with the same values of this vector and multiplies them with the provided scalar.Vector3d.mult(double multX, double multY, double multZ) Creates a new vector with the same values of this vector and multiplies the provided values.Creates a new vector with the same values of this vector and multiplies the values of the provided vector.Vector3d.multLocal(double scalar) Multiplies the values of this vector with the provided scalar.Vector3d.multLocal(double multX, double multY, double multZ) Multiplies the values of this vector with the provided values.Multiplies the values of this vector with the values of the provided vector.Vector3d.negate()Creates a new vector which contains negated values of this vector.Vector3d.negateLocal()Negates all values of this vector.Vector3d.normalize()Creates a new vector containing normalized values of this vector (i.e as a unit vector).Vector3d.normalizeLocal()Normalizes this vector (i.e turn it into a unit vector).Vector3d.set(double x, double y, double z) Sets the x, y and z values of this vector to the provided values.Sets the x, y and z values of this vector to the values of the provided vector.Sets the x, y and z values of this vector to the values of the provided vector.Vector3d.setX(double x) Sets the x value of this vector.Vector3d.setY(double y) Sets the y value of this vector.Vector3d.setZ(double z) Sets the z value of this vector.Vector3d.subtract(double subtractX, double subtractY, double subtractZ) Creates a new vector with the same values of this vector and subtracts the provided values.Creates a new vector with the same values of this vector and subtracts the values of the provided vector.Vector3d.subtractLocal(double subtractX, double subtractY, double subtractZ) Subtracts the provided values from the values of this vector.Vector3d.subtractLocal(Vector3d other) Subtracts the values of the provided vector from the values of this vector.Methods in net.risingworld.api.utils with parameters of type Vector3dModifier and TypeMethodDescriptionCreates a new vector with the same values of this vector and adds the values of the provided vector.Adds the values of the provided vector to the values of this vector.doubleVector3d.angleBetween(Vector3d other) Gets the angle between this vector and another vector.Creates a new vector containing the cross product of this vector and another vector.Vector3d.crossLocal(Vector3d other) Calculates the cross product of this vector and another vector.doubleGets the distance between this vector and another vector.doubleVector3d.distanceSquared(Vector3d other) Gets the squared distance between this vector and another Vector3d.Creates a new vector with the same values of this vector and divides the values of the provided vector.Vector3d.divideLocal(Vector3d other) doubleGets the dot product of this vector with the provided vector.Vector3d.interpolate(Vector3d startVector, Vector3d finalVector, double mu) Creates a new vector containing the interpolated values between the start vector and the final vector.Vector3d.interpolateLocal(Vector3d finalVector, double mu) Interpolates this vector to the provided final vector, e.g if this vector is (0, 5, 10), and the final vector is (-10, 0, 10), the result (by using a mu-value of 0.5d) would be (-5, 2.5, 10)Vector3d.interpolateLocal(Vector3d startVector, Vector3d finalVector, double mu) Interpolates between the provided start and end vector and stores the result in this vector.booleanVector3d.isOrthogonal(Vector3d other) Checks if this vector is orthogonal to another vector (i.e the angle between both vectors is ~ 90° degree).Creates a new vector with the same values of this vector and multiplies the values of the provided vector.Multiplies the values of this vector with the values of the provided vector.Sets the x, y and z values of this vector to the values of the provided vector.Creates a new vector with the same values of this vector and subtracts the values of the provided vector.Vector3d.subtractLocal(Vector3d other) Subtracts the values of the provided vector from the values of this vector.Constructors in net.risingworld.api.utils with parameters of type Vector3d