Uses of Class
civitas.celestis.math.vector.Vector3
Packages that use Vector3
Package
Description
-
Uses of Vector3 in civitas.celestis.math.complex
Methods in civitas.celestis.math.complex that return Vector3Modifier and TypeMethodDescriptionstatic Vector3Quaternions.axis(Quaternion q) Given a rotation quaternionq, 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 Vector3Modifier and TypeMethodDescriptionstatic QuaternionCreates 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 Vector3Modifier and TypeMethodDescriptionDecimal3.primValue()Converts this vector into a primitive vector.Constructors in civitas.celestis.math.decimal with parameters of type Vector3 -
Uses of Vector3 in civitas.celestis.math.matrix
Methods in civitas.celestis.math.matrix that return Vector3Modifier and TypeMethodDescriptionMultiplies a vector by this matrix, then returns the resulting vector.Methods in civitas.celestis.math.matrix with parameters of type Vector3 -
Uses of Vector3 in civitas.celestis.math.vector
Fields in civitas.celestis.math.vector declared as Vector3Modifier and TypeFieldDescriptionstatic final Vector3Vector3.NEGATIVE_XThe negative X unit vector.static final Vector3Vector3.NEGATIVE_YThe negative Y unit vector.static final Vector3Vector3.NEGATIVE_ZThe negative Z unit vector.static final Vector3Vector3.POSITIVE_XThe positive X unit vector.static final Vector3Vector3.POSITIVE_YThe positive Y unit vector.static final Vector3Vector3.POSITIVE_ZThe positive Z unit vector.static final Vector3Vector3.ZEROA vector of no direction or magnitude.Methods in civitas.celestis.math.vector that return Vector3Modifier and TypeMethodDescriptionVector3.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 Vector3Returns the simple average of the provided vectors.static Vector3Returns 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].Returns the cross product between this vector and the provided vectorv.Vector3.divide(double s) Divides this vector by a scalar component-wise, then returns the resulting vector.static Vector3Performs linear interpolation (LERP) between the starting valuesand the ending valuee.Vector3.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 Vector3Returns the collective maximum vector between the provided vectors.Vector3.merge(Vector3 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 Vector3Returns 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) of1.Vector3.normalizeOrDefault(Vector3 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Vector3.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.static Vector3Vectors.random3()Returns a random unit vector.Vector3.rotate(Quaternion q) Rotates this vector by the provided rotation quaternionq.Vector3.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 Vector3Returns the sum of the provided values.static Vector3Returns the sum of the two values.Methods in civitas.celestis.math.vector with parameters of type Vector3Modifier and TypeMethodDescriptionAdds another vector to this vector, then returns the resulting vector.static Vector3Returns the simple average of the provided vectors.static Vector3Returns 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].Returns the cross product between this vector and the provided vectorv.doubleReturns the Euclidean distance between this vector and the provided vectorv.doubleReturns the squared Euclidean distance between this vector and the provided vectorv.doubleVector3.distanceManhattan(Vector3 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 Vector3Performs 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 Vector3Returns the collective maximum vector between the provided vectors.Vector3.merge(Vector3 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 Vector3Returns the collective minimum vector between the provided vectors.Vector3.normalizeOrDefault(Vector3 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Subtracts another vector from this vector, then returns the resulting vector.static Vector3Returns the sum of the provided values.static Vector3Returns the sum of the two values.