Uses of Class
civitas.celestis.math.vector.Vector3

Packages that use Vector3
  • Uses of Vector3 in civitas.celestis.math.complex

    Methods in civitas.celestis.math.complex that return Vector3
    Modifier and Type
    Method
    Description
    static Vector3
    Quaternions.axis(Quaternion q)
    Given a rotation quaternion q, this returns the axis of the rotation.
    Quaternion.vector()
    Returns the vector part of this quaternion.
    Methods in civitas.celestis.math.complex with parameters of type Vector3
    Modifier and Type
    Method
    Description
    static Quaternion
    Quaternions.from(Vector3 axis, double angle)
    Creates a new rotation quaternion from an axis/angle notation.
  • Uses of Vector3 in civitas.celestis.math.decimal

    Methods in civitas.celestis.math.decimal that return Vector3
    Modifier and Type
    Method
    Description
    Decimal3.primValue()
    Converts this vector into a primitive vector.
    Constructors in civitas.celestis.math.decimal with parameters of type Vector3
    Modifier
    Constructor
    Description
     
    Creates a new vector.
  • Uses of Vector3 in civitas.celestis.math.matrix

    Methods in civitas.celestis.math.matrix that return Vector3
    Modifier and Type
    Method
    Description
    Matrix.multiply(Vector3 v)
    Multiplies a vector by this matrix, then returns the resulting vector.
    Methods in civitas.celestis.math.matrix with parameters of type Vector3
    Modifier and Type
    Method
    Description
    Matrix.multiply(Vector3 v)
    Multiplies a vector by this matrix, then returns the resulting vector.
  • Uses of Vector3 in civitas.celestis.math.vector

    Modifier and Type
    Field
    Description
    static final Vector3
    Vector3.NEGATIVE_X
    The negative X unit vector.
    static final Vector3
    Vector3.NEGATIVE_Y
    The negative Y unit vector.
    static final Vector3
    Vector3.NEGATIVE_Z
    The negative Z unit vector.
    static final Vector3
    Vector3.POSITIVE_X
    The positive X unit vector.
    static final Vector3
    Vector3.POSITIVE_Y
    The positive Y unit vector.
    static final Vector3
    Vector3.POSITIVE_Z
    The positive Z unit vector.
    static final Vector3
    Vector3.ZERO
    A vector of no direction or magnitude.
    Methods in civitas.celestis.math.vector that return Vector3
    Modifier and Type
    Method
    Description
    Vector3.add(double s)
    Adds a scalar to this vector component-wise, then returns the resulting vector.
    Vector3.add(Vector3 v)
    Adds another vector to this vector, then returns the resulting vector.
    static Vector3
    Vectors.avg(Vector3... values)
    Returns the simple average of the provided vectors.
    static Vector3
    Vectors.avg(Vector3 v1, Vector3 v2)
    Returns the simple average of the two vectors.
    Vector3.clamp(Vector3 min, Vector3 max)
    Between this vector and the provided boundary vectors min and max, this returns a new vector whose components are clamped to respect the range of [min, max].
    Vector3.cross(Vector3 v)
    Returns the cross product between this vector and the provided vector v.
    Vector3.divide(double s)
    Divides this vector by a scalar component-wise, then returns the resulting vector.
    static Vector3
    Vectors.lerp(Vector3 s, Vector3 e, double t)
    Performs linear interpolation (LERP) between the starting value s and the ending value e.
    Applies the provided mapper function f to each component of this tuple, then returns a new tuple containing the return values of the function f.
    Vector3.max(Vector3 v)
    Between this vector and the provided boundary vector v, this takes the maximum of each corresponding pair of components, then returns a new vector whose components are populated from that of the maximum values between each pair of components.
    static Vector3
    Vectors.max(Vector3... values)
    Returns the collective maximum vector between the provided vectors.
    Between this vector and the provided vector v, this applies the merger function f to each corresponding pair of components, then returns a new vector whose components are populated from the return values of the function f.
    Vector3.min(Vector3 v)
    Between this vector and the provided boundary vector v, this takes the minimum of each corresponding pair of components, then returns a new vector whose components are populated from that of the minimum values between each pair of components.
    static Vector3
    Vectors.min(Vector3... values)
    Returns the collective minimum vector between the provided vectors.
    Vector3.multiply(double s)
    Multiplies this vector by a scalar component-wise, then returns the resulting vector.
    Vector3.negate()
    Negates all components of this vector, then returns the resulting vector.
    Vector3.normalize()
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Vector3.normalizeOrZero()
    Normalizes this vector ot have a Euclidean norm (magnitude) of 1.
    static Vector3
    Vectors.random3()
    Returns a random unit vector.
    Vector3.rotate(Quaternion q)
    Rotates this vector by the provided rotation quaternion q.
    Vector3.subtract(double s)
    Subtracts this vector by a scalar component-wise, then returns the resulting vector.
    Vector3.subtract(Vector3 v)
    Subtracts another vector from this vector, then returns the resulting vector.
    static Vector3
    Vectors.sum(Vector3... values)
    Returns the sum of the provided values.
    static Vector3
    Vectors.sum(Vector3 v1, Vector3 v2)
    Returns the sum of the two values.
    Methods in civitas.celestis.math.vector with parameters of type Vector3
    Modifier and Type
    Method
    Description
    Vector3.add(Vector3 v)
    Adds another vector to this vector, then returns the resulting vector.
    static Vector3
    Vectors.avg(Vector3... values)
    Returns the simple average of the provided vectors.
    static Vector3
    Vectors.avg(Vector3 v1, Vector3 v2)
    Returns the simple average of the two vectors.
    Vector3.clamp(Vector3 min, Vector3 max)
    Between this vector and the provided boundary vectors min and max, this returns a new vector whose components are clamped to respect the range of [min, max].
    Vector3.cross(Vector3 v)
    Returns the cross product between this vector and the provided vector v.
    double
    Vector3.distance(Vector3 v)
    Returns the Euclidean distance between this vector and the provided vector v.
    double
    Vector3.distance2(Vector3 v)
    Returns the squared Euclidean distance between this vector and the provided vector v.
    double
    Returns the Manhattan distance between this vector and the provided vector v.
    double
    Vector3.dot(Vector3 v)
    Returns the dot product between this vector and the provided vector v.
    boolean
    Vector3.equals(Vector3 v)
    Checks for equality between this vector and the provided vector v.
    static boolean
    Vectors.isInRange(Vector3 val, Vector3 min, Vector3 max)
    Checks if the provided value val is within the range of [min, max].
    static Vector3
    Vectors.lerp(Vector3 s, Vector3 e, double t)
    Performs linear interpolation (LERP) between the starting value s and the ending value e.
    Vector3.max(Vector3 v)
    Between this vector and the provided boundary vector v, this takes the maximum of each corresponding pair of components, then returns a new vector whose components are populated from that of the maximum values between each pair of components.
    static Vector3
    Vectors.max(Vector3... values)
    Returns the collective maximum vector between the provided vectors.
    Between this vector and the provided vector v, this applies the merger function f to each corresponding pair of components, then returns a new vector whose components are populated from the return values of the function f.
    Vector3.min(Vector3 v)
    Between this vector and the provided boundary vector v, this takes the minimum of each corresponding pair of components, then returns a new vector whose components are populated from that of the minimum values between each pair of components.
    static Vector3
    Vectors.min(Vector3... values)
    Returns the collective minimum vector between the provided vectors.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Vector3.subtract(Vector3 v)
    Subtracts another vector from this vector, then returns the resulting vector.
    static Vector3
    Vectors.sum(Vector3... values)
    Returns the sum of the provided values.
    static Vector3
    Vectors.sum(Vector3 v1, Vector3 v2)
    Returns the sum of the two values.