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

Packages that use ArrayVector
Package
Description
 
  • Uses of ArrayVector in civitas.celestis.math.vector

    Modifier and Type
    Method
    Description
    ArrayVector.add(double s)
    Adds a scalar to this vector component-wise, then returns the resulting vector.
    ArrayVector.add(ArrayVector v)
    Adds another vector to this vector, then returns the resulting vector.
    ArrayVector.clamp(ArrayVector min, ArrayVector 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].
    ArrayVector.divide(double s)
    Divides this vector by a scalar component-wise, then returns the resulting vector.
    ArrayVector.map(DoubleUnaryOperator f)
    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.
    ArrayVector.max(ArrayVector 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.
    ArrayVector.merge(ArrayVector v, BinaryOperator<Double> f)
    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.
    ArrayVector.min(ArrayVector 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.
    ArrayVector.multiply(double s)
    Multiplies this vector by a scalar component-wise, then returns the resulting vector.
    ArrayVector.negate()
    Negates all components of this vector, then returns the resulting vector.
    ArrayVector.normalize()
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    ArrayVector.normalizeOrZero()
    Normalizes this vector ot have a Euclidean norm (magnitude) of 1.
    ArrayVector.subtract(double s)
    Subtracts this vector by a scalar component-wise, then returns the resulting vector.
    ArrayVector.subtract(ArrayVector v)
    Subtracts another vector from this vector, then returns the resulting vector.
    Methods in civitas.celestis.math.vector with parameters of type ArrayVector
    Modifier and Type
    Method
    Description
    ArrayVector.add(ArrayVector v)
    Adds another vector to this vector, then returns the resulting vector.
    ArrayVector.clamp(ArrayVector min, ArrayVector 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
    ArrayVector.distance(ArrayVector v)
    Returns the Euclidean distance between this vector and the provided vector v.
    double
    ArrayVector.distance2(ArrayVector 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
    ArrayVector.dot(ArrayVector v)
    Returns the dot product between this vector and the provided vector v.
    boolean
    ArrayVector.equals(ArrayVector v)
    Checks for equality between this vector and the provided vector v.
    ArrayVector.max(ArrayVector 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.
    ArrayVector.merge(ArrayVector v, BinaryOperator<Double> f)
    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.
    ArrayVector.min(ArrayVector 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.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    ArrayVector.subtract(ArrayVector v)
    Subtracts another vector from this vector, then returns the resulting vector.