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

Packages that use Vector4
  • Uses of Vector4 in civitas.celestis.math.decimal

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

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

    Modifier and Type
    Field
    Description
    static final Vector4
    Vector4.NEGATIVE_W
    The negative W unit vector.
    static final Vector4
    Vector4.NEGATIVE_X
    The negative X unit vector.
    static final Vector4
    Vector4.NEGATIVE_Y
    The negative Y unit vector.
    static final Vector4
    Vector4.NEGATIVE_Z
    The negative Z unit vector.
    static final Vector4
    Vector4.POSITIVE_W
    The positive W unit vector.
    static final Vector4
    Vector4.POSITIVE_X
    The positive X unit vector.
    static final Vector4
    Vector4.POSITIVE_Y
    The positive Y unit vector.
    static final Vector4
    Vector4.POSITIVE_Z
    The positive Z unit vector.
    static final Vector4
    Vector4.ZERO
    A vector of no direction of magnitude.
    Methods in civitas.celestis.math.vector that return Vector4
    Modifier and Type
    Method
    Description
    Vector4.add(double s)
    Adds a scalar to this vector component-wise, then returns the resulting vector.
    Vector4.add(Vector4 v)
    Adds another vector to this vector, then returns the resulting vector.
    static Vector4
    Vectors.avg(Vector4... values)
    Returns the simple average of the provided vectors.
    static Vector4
    Vectors.avg(Vector4 v1, Vector4 v2)
    Returns the simple average of the two vectors.
    Vector4.clamp(Vector4 min, Vector4 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].
    Vector4.divide(double s)
    Divides this vector by a scalar component-wise, then returns the resulting vector.
    static Vector4
    Vectors.lerp(Vector4 s, Vector4 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.
    Vector4.max(Vector4 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 Vector4
    Vectors.max(Vector4... 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.
    Vector4.min(Vector4 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 Vector4
    Vectors.min(Vector4... values)
    Returns the collective minimum vector between the provided vectors.
    Vector4.multiply(double s)
    Multiplies this vector by a scalar component-wise, then returns the resulting vector.
    Vector4.multiply(Vector4 v)
    Returns the quaternion left-product between this vector and the provided vector v.
    Vector4.negate()
    Negates all components of this vector, then returns the resulting vector.
    Vector4.normalize()
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Vector4.normalizeOrZero()
    Normalizes this vector ot have a Euclidean norm (magnitude) of 1.
    static Vector4
    Vectors.random4()
    Returns a random unit vector.
    Vector4.subtract(double s)
    Subtracts this vector by a scalar component-wise, then returns the resulting vector.
    Vector4.subtract(Vector4 v)
    Subtracts another vector from this vector, then returns the resulting vector.
    static Vector4
    Vectors.sum(Vector4... values)
    Returns the sum of the provided values.
    static Vector4
    Vectors.sum(Vector4 v1, Vector4 v2)
    Returns the sum of the two values.
    Methods in civitas.celestis.math.vector with parameters of type Vector4
    Modifier and Type
    Method
    Description
    Vector4.add(Vector4 v)
    Adds another vector to this vector, then returns the resulting vector.
    static Vector4
    Vectors.avg(Vector4... values)
    Returns the simple average of the provided vectors.
    static Vector4
    Vectors.avg(Vector4 v1, Vector4 v2)
    Returns the simple average of the two vectors.
    Vector4.clamp(Vector4 min, Vector4 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].
    double
    Vector4.distance(Vector4 v)
    Returns the Euclidean distance between this vector and the provided vector v.
    double
    Vector4.distance2(Vector4 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
    Vector4.dot(Vector4 v)
    Returns the dot product between this vector and the provided vector v.
    boolean
    Vector4.equals(Vector4 v)
    Checks for equality between this vector and the provided vector v.
    static boolean
    Vectors.isInRange(Vector4 val, Vector4 min, Vector4 max)
    Checks if the provided value val is within the range of [min, max].
    static Vector4
    Vectors.lerp(Vector4 s, Vector4 e, double t)
    Performs linear interpolation (LERP) between the starting value s and the ending value e.
    Vector4.max(Vector4 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 Vector4
    Vectors.max(Vector4... 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.
    Vector4.min(Vector4 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 Vector4
    Vectors.min(Vector4... values)
    Returns the collective minimum vector between the provided vectors.
    Vector4.multiply(Vector4 v)
    Returns the quaternion left-product between this vector and the provided vector v.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Vector4.subtract(Vector4 v)
    Subtracts another vector from this vector, then returns the resulting vector.
    static Vector4
    Vectors.sum(Vector4... values)
    Returns the sum of the provided values.
    static Vector4
    Vectors.sum(Vector4 v1, Vector4 v2)
    Returns the sum of the two values.