Uses of Class
civitas.celestis.math.decimal.Decimal3
Packages that use Decimal3
-
Uses of Decimal3 in civitas.celestis.math.decimal
Fields in civitas.celestis.math.decimal declared as Decimal3Modifier and TypeFieldDescriptionstatic final Decimal3Decimal3.NEGATIVE_AThe negative A unit vector.static final Decimal3Decimal3.NEGATIVE_BThe negative B unit vector.static final Decimal3Decimal3.NEGATIVE_CThe negative C unit vector.static final Decimal3Decimal3.POSITIVE_AThe positive A unit vector.static final Decimal3Decimal3.POSITIVE_BThe positive B unit vector.static final Decimal3Decimal3.POSITIVE_CThe positive C unit vector.static final Decimal3Decimal3.ZEROA vector of no direction or magnitude.Methods in civitas.celestis.math.decimal that return Decimal3Modifier and TypeMethodDescriptionAdds another vector to this vector, then returns the resulting vector.Decimal3.add(BigDecimal s) Adds a scalar to this vector component-wise, then returns the resulting vector.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.Decimal3.divide(BigDecimal s) Divides this vector by a scalar component-wise, then returns the resulting vector.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.Decimal3.merge(Decimal3 v, BinaryOperator<BigDecimal> 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.Decimal3.multiply(BigDecimal s) Multiplies this vector by a scalar component-wise, then returns the resulting vector.Decimal3.negate()Negates all components of this vector, then returns the resulting vector.Decimal3.normalize()Normalizes this vector to have a Euclidean norm (magnitude) of1.Decimal3.normalizeOrDefault(Decimal3 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Decimal3.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.Decimal3.rotate(DecimalQuaternion q) Rotates this vector by the provided rotation quaternionq.Subtracts another vector from this vector, then returns the resulting vector.Decimal3.subtract(BigDecimal s) Subtracts this vector by a scalar component-wise, then returns the resulting vector.Decimal3.transform(UnaryOperator<BigDecimal> f) Applies the provided transformation functionfto each component of this vector, then returns a new vector containing the return values of the function f.DecimalQuaternion.vector()Returns the vector part of this quaternion.Methods in civitas.celestis.math.decimal with parameters of type Decimal3Modifier and TypeMethodDescriptionAdds another vector to this vector, then returns the resulting vector.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.Returns the Euclidean distance between this vector and the provided vectorv.Returns the squared Euclidean distance between this vector and the provided vectorv.Decimal3.distanceManhattan(Decimal3 v) Returns the Manhattan distance between this vector and the provided vectorv.Returns the dot product between this vector and the provided vectorv.booleanChecks for equality between this vector and the provided vectorv.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.Decimal3.merge(Decimal3 v, BinaryOperator<BigDecimal> 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.Decimal3.normalizeOrDefault(Decimal3 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Subtracts another vector from this vector, then returns the resulting vector.Constructors in civitas.celestis.math.decimal with parameters of type Decimal3ModifierConstructorDescriptionCreates a new decimal quaternion. -
Uses of Decimal3 in civitas.celestis.math.integer
Methods in civitas.celestis.math.integer that return Decimal3Modifier and TypeMethodDescriptionInteger3.normalize()Normalizes this vector to have a Euclidean norm (magnitude) of1.Integer3.normalizeOrDefault(Decimal3 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Integer3.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.Methods in civitas.celestis.math.integer with parameters of type Decimal3Modifier and TypeMethodDescriptionInteger3.normalizeOrDefault(Decimal3 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.