Uses of Class
civitas.celestis.math.decimal.Decimal4
Packages that use Decimal4
-
Uses of Decimal4 in civitas.celestis.math.decimal
Subclasses of Decimal4 in civitas.celestis.math.decimalFields in civitas.celestis.math.decimal declared as Decimal4Modifier and TypeFieldDescriptionstatic final Decimal4Decimal4.NEGATIVE_AThe negative A unit vector.static final Decimal4Decimal4.NEGATIVE_BThe negative B unit vector.static final Decimal4Decimal4.NEGATIVE_CThe negative C unit vector.static final Decimal4Decimal4.NEGATIVE_DThe negative D unit vector.static final Decimal4Decimal4.POSITIVE_AThe positive A unit vector.static final Decimal4Decimal4.POSITIVE_BThe positive B unit vector.static final Decimal4Decimal4.POSITIVE_CThe positive C unit vector.static final Decimal4Decimal4.POSITIVE_DThe positive D unit vector.static final Decimal4Decimal4.ZEROA vector of no direction of magnitude.Methods in civitas.celestis.math.decimal that return Decimal4Modifier and TypeMethodDescriptionAdds another vector to this vector, then returns the resulting vector.Decimal4.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].Decimal4.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.Decimal4.merge(Decimal4 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.Decimal4.multiply(BigDecimal s) Multiplies this vector by a scalar component-wise, then returns the resulting vector.Decimal4.negate()Negates all components of this vector, then returns the resulting vector.Decimal4.normalize()Normalizes this vector to have a Euclidean norm (magnitude) of1.Decimal4.normalizeOrDefault(Decimal4 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Decimal4.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.Subtracts another vector from this vector, then returns the resulting vector.Decimal4.subtract(BigDecimal s) Subtracts this vector by a scalar component-wise, then returns the resulting vector.Decimal4.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.Methods in civitas.celestis.math.decimal with parameters of type Decimal4Modifier 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 Euclidean distance between this vector and the provided vectorv.Returns the squared Euclidean distance between this vector and the provided vectorv.Decimal4.distanceManhattan(Decimal4 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.Decimal4.merge(Decimal4 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.Decimal4.normalizeOrDefault(Decimal4 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Subtracts another vector from this vector, then returns the resulting vector. -
Uses of Decimal4 in civitas.celestis.math.integer
Methods in civitas.celestis.math.integer that return Decimal4Modifier and TypeMethodDescriptionInteger4.normalize()Normalizes this vector to have a Euclidean norm (magnitude) of1.Integer4.normalizeOrDefault(Decimal4 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Integer4.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.Methods in civitas.celestis.math.integer with parameters of type Decimal4Modifier and TypeMethodDescriptionInteger4.normalizeOrDefault(Decimal4 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.