Uses of Class
net.risingworld.api.utils.Vector3d

Packages that use Vector3d
Package
Description
 
  • Uses of Vector3d in net.risingworld.api.utils

    Fields in net.risingworld.api.utils declared as Vector3d
    Modifier and Type
    Field
    Description
    static final Vector3d
    Vector3d.BACK
    A unit vector along the -Z axis (backward direction)
    static final Vector3d
    Vector3d.DOWN
    A unit vector along the -Y axis (down direction)
    static final Vector3d
    Vector3d.FORWARD
    A unit vector along the Z axis (forward direction)
    static final Vector3d
    Vector3d.LEFT
    A unit vector along the -X axis (left direction)
    static final Vector3d
    Vector3d.ONE
    A vector with values 1, 1, 1
    static final Vector3d
    Vector3d.RIGHT
    A unit vector along the X axis (right direction)
    static final Vector3d
    Vector3d.UP
    A unit vector along the Y axis (up direction)
    static final Vector3d
    Vector3d.ZERO
    A vector with values 0, 0, 0
    Methods in net.risingworld.api.utils that return Vector3d
    Modifier and Type
    Method
    Description
    Vector3d.add(double addX, double addY, double addZ)
    Creates a new vector with the same values of this vector and adds the provided values.
    Vector3d.add(Vector3d other)
    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.
    Vector3d.addLocal(Vector3d other)
    Adds the values of the provided vector to the values of this vector.
    Vector3d.copy()
    Creates a copy of this vector.
    Vector3d.cross(Vector3d other)
    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.
    Vector3d.divide(Vector3d other)
    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.
    Vector3d.mult(Vector3d other)
    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.
    Vector3d.multLocal(Vector3d other)
    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.
    Vector3d.set(Vector3d vector)
    Sets the x, y and z values of this vector to the values of the provided vector.
    Vector3d.set(Vector3f 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.
    Vector3d.subtract(Vector3d other)
    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 Vector3d
    Modifier and Type
    Method
    Description
    Vector3d.add(Vector3d other)
    Creates a new vector with the same values of this vector and adds the values of the provided vector.
    Vector3d.addLocal(Vector3d other)
    Adds the values of the provided vector to the values of this vector.
    double
    Vector3d.angleBetween(Vector3d other)
    Gets the angle between this vector and another vector.
    Vector3d.cross(Vector3d other)
    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.
    double
    Vector3d.distance(Vector3d other)
    Gets the distance between this vector and another vector.
    double
    Vector3d.distanceSquared(Vector3d other)
    Gets the squared distance between this vector and another Vector3d.
    Vector3d.divide(Vector3d other)
    Creates a new vector with the same values of this vector and divides the values of the provided vector.
    Vector3d.divideLocal(Vector3d other)
     
    double
    Vector3d.dot(Vector3d other)
    Gets 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.
    boolean
    Vector3d.isOrthogonal(Vector3d other)
    Checks if this vector is orthogonal to another vector (i.e the angle between both vectors is ~ 90° degree).
    Vector3d.mult(Vector3d other)
    Creates a new vector with the same values of this vector and multiplies the values of the provided vector.
    Vector3d.multLocal(Vector3d other)
    Multiplies the values of this vector with the values of the provided vector.
    Vector3d.set(Vector3d vector)
    Sets the x, y and z values of this vector to the values of the provided vector.
    Vector3d.subtract(Vector3d other)
    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
    Modifier
    Constructor
    Description
     
    Creates a new vector and copies the X, Y and Z values from the provided vector.