Uses of Class
civitas.celestis.math.vector.Vector4
Packages that use Vector4
Package
Description
-
Uses of Vector4 in civitas.celestis.math.decimal
Methods in civitas.celestis.math.decimal that return Vector4Modifier and TypeMethodDescriptionDecimal4.primValue()Converts this vector into a primitive vector.Constructors in civitas.celestis.math.decimal with parameters of type Vector4ModifierConstructorDescriptionCreates a new vector.Creates a new decimal quaternion. -
Uses of Vector4 in civitas.celestis.math.matrix
Methods in civitas.celestis.math.matrix that return Vector4Modifier and TypeMethodDescriptionMultiplies a vector by this matrix, then returns the resulting vector.Methods in civitas.celestis.math.matrix with parameters of type Vector4 -
Uses of Vector4 in civitas.celestis.math.vector
Fields in civitas.celestis.math.vector declared as Vector4Modifier and TypeFieldDescriptionstatic final Vector4Vector4.NEGATIVE_WThe negative W unit vector.static final Vector4Vector4.NEGATIVE_XThe negative X unit vector.static final Vector4Vector4.NEGATIVE_YThe negative Y unit vector.static final Vector4Vector4.NEGATIVE_ZThe negative Z unit vector.static final Vector4Vector4.POSITIVE_WThe positive W unit vector.static final Vector4Vector4.POSITIVE_XThe positive X unit vector.static final Vector4Vector4.POSITIVE_YThe positive Y unit vector.static final Vector4Vector4.POSITIVE_ZThe positive Z unit vector.static final Vector4Vector4.ZEROA vector of no direction of magnitude.Methods in civitas.celestis.math.vector that return Vector4Modifier and TypeMethodDescriptionVector4.add(double s) Adds a scalar to this vector component-wise, then returns the resulting vector.Adds another vector to this vector, then returns the resulting vector.static Vector4Returns the simple average of the provided vectors.static Vector4Returns the simple average of the two vectors.Between this vector and the provided boundary vectorsminandmax, 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 Vector4Performs linear interpolation (LERP) between the starting valuesand the ending valuee.Vector4.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.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.static Vector4Returns the collective maximum vector between the provided vectors.Vector4.merge(Vector4 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.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.static Vector4Returns 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.Returns the quaternion left-product between this vector and the provided vectorv.Vector4.negate()Negates all components of this vector, then returns the resulting vector.Vector4.normalize()Normalizes this vector to have a Euclidean norm (magnitude) of1.Vector4.normalizeOrDefault(Vector4 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Vector4.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.static Vector4Vectors.random4()Returns a random unit vector.Vector4.subtract(double s) Subtracts this vector by a scalar component-wise, then returns the resulting vector.Subtracts another vector from this vector, then returns the resulting vector.static Vector4Returns the sum of the provided values.static Vector4Returns the sum of the two values.Methods in civitas.celestis.math.vector with parameters of type Vector4Modifier and TypeMethodDescriptionAdds another vector to this vector, then returns the resulting vector.static Vector4Returns the simple average of the provided vectors.static Vector4Returns the simple average of the two vectors.Between this vector and the provided boundary vectorsminandmax, this returns a new vector whose components are clamped to respect the range of[min, max].doubleReturns the Euclidean distance between this vector and the provided vectorv.doubleReturns the squared Euclidean distance between this vector and the provided vectorv.doubleVector4.distanceManhattan(Vector4 v) Returns the Manhattan distance between this vector and the provided vectorv.doubleReturns the dot product between this vector and the provided vectorv.booleanChecks for equality between this vector and the provided vectorv.static booleanChecks if the provided valuevalis within the range of[min, max].static Vector4Performs linear interpolation (LERP) between the starting valuesand the ending valuee.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.static Vector4Returns the collective maximum vector between the provided vectors.Vector4.merge(Vector4 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.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.static Vector4Returns the collective minimum vector between the provided vectors.Returns the quaternion left-product between this vector and the provided vectorv.Vector4.normalizeOrDefault(Vector4 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Subtracts another vector from this vector, then returns the resulting vector.static Vector4Returns the sum of the provided values.static Vector4Returns the sum of the two values.