Uses of Class
civitas.celestis.math.decimal.Decimal2
Packages that use Decimal2
-
Uses of Decimal2 in civitas.celestis.math.decimal
Fields in civitas.celestis.math.decimal declared as Decimal2Modifier and TypeFieldDescriptionstatic final Decimal2Decimal2.NEGATIVE_AThe negative A unit vector.static final Decimal2Decimal2.NEGATIVE_BThe negative B unit vector.static final Decimal2Decimal2.POSITIVE_AThe positive A unit vector.static final Decimal2Decimal2.POSITIVE_BThe positive B unit vector.static final Decimal2Decimal2.ZEROA vector of no direction or magnitude.Methods in civitas.celestis.math.decimal that return Decimal2Modifier and TypeMethodDescriptionAdds another vector to this vector, then returns the resulting vector.Decimal2.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].Decimal2.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.Decimal2.merge(Decimal2 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.Decimal2.multiply(BigDecimal s) Multiplies this vector by a scalar component-wise, then returns the resulting vector.Decimal2.negate()Negates all components of this vector, then returns the resulting vector.Decimal2.normalize()Normalizes this vector to have a Euclidean norm (magnitude) of1.Decimal2.normalizeOrDefault(Decimal2 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Decimal2.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.Decimal2.rotate(BigDecimal t) Rotates this vector counter-clockwise by the provided anglet.Subtracts another vector from this vector, then returns the resulting vector.Decimal2.subtract(BigDecimal s) Subtracts this vector by a scalar component-wise, then returns the resulting vector.Decimal2.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 Decimal2Modifier 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.Decimal2.distanceManhattan(Decimal2 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.Decimal2.merge(Decimal2 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.Decimal2.normalizeOrDefault(Decimal2 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Subtracts another vector from this vector, then returns the resulting vector. -
Uses of Decimal2 in civitas.celestis.math.integer
Methods in civitas.celestis.math.integer that return Decimal2Modifier and TypeMethodDescriptionInteger2.normalize()Normalizes this vector to have a Euclidean norm (magnitude) of1.Integer2.normalizeOrDefault(Decimal2 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.Integer2.normalizeOrZero()Normalizes this vector ot have a Euclidean norm (magnitude) of1.Methods in civitas.celestis.math.integer with parameters of type Decimal2Modifier and TypeMethodDescriptionInteger2.normalizeOrDefault(Decimal2 v) Normalizes this vector to have a Euclidean norm (magnitude) of1.