Uses of Class
civitas.celestis.math.vector.ArrayVector
Packages that use ArrayVector
-
Uses of ArrayVector in civitas.celestis.math.vector
Methods in civitas.celestis.math.vector that return ArrayVectorModifier and TypeMethodDescriptionArrayVector.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 vectorsminandmax, 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 functionfto each component of this tuple, then returns a new tuple containing the return values of the functionf.ArrayVector.max(ArrayVector v) Between this vector and the provided boundary vectorv, 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 vectorv, this applies the merger functionfto each corresponding pair of components, then returns a new vector whose components are populated from the return values of the functionf.ArrayVector.min(ArrayVector v) Between this vector and the provided boundary vectorv, 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) of1.ArrayVector.normalizeOrDefault(ArrayVector v) Normalizes this vector to have a Euclidean norm (magnitude) of1.ArrayVector.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.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 ArrayVectorModifier and TypeMethodDescriptionArrayVector.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 vectorsminandmax, this returns a new vector whose components are clamped to respect the range of[min, max].doubleArrayVector.distance(ArrayVector v) Returns the Euclidean distance between this vector and the provided vectorv.doubleArrayVector.distance2(ArrayVector v) Returns the squared Euclidean distance between this vector and the provided vectorv.doubleArrayVector.distanceManhattan(ArrayVector v) Returns the Manhattan distance between this vector and the provided vectorv.doubleArrayVector.dot(ArrayVector v) Returns the dot product between this vector and the provided vectorv.booleanArrayVector.equals(ArrayVector v) Checks for equality between this vector and the provided vectorv.ArrayVector.max(ArrayVector v) Between this vector and the provided boundary vectorv, 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 vectorv, this applies the merger functionfto each corresponding pair of components, then returns a new vector whose components are populated from the return values of the functionf.ArrayVector.min(ArrayVector v) Between this vector and the provided boundary vectorv, 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.normalizeOrDefault(ArrayVector v) Normalizes this vector to have a Euclidean norm (magnitude) of1.ArrayVector.subtract(ArrayVector v) Subtracts another vector from this vector, then returns the resulting vector.