Uses of Class
civitas.celestis.math.decimal.Decimal2

Packages that use Decimal2
  • Uses of Decimal2 in civitas.celestis.math.decimal

    Modifier and Type
    Field
    Description
    static final Decimal2
    Decimal2.NEGATIVE_A
    The negative A unit vector.
    static final Decimal2
    Decimal2.NEGATIVE_B
    The negative B unit vector.
    static final Decimal2
    Decimal2.POSITIVE_A
    The positive A unit vector.
    static final Decimal2
    Decimal2.POSITIVE_B
    The positive B unit vector.
    static final Decimal2
    Decimal2.ZERO
    A vector of no direction or magnitude.
    Modifier and Type
    Method
    Description
    Decimal2.add(Decimal2 v)
    Adds 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.
    Decimal2.clamp(Decimal2 min, Decimal2 max)
    Between this vector and the provided boundary vectors min and max, 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.
    Decimal2.max(Decimal2 v)
    Between this vector and the provided boundary vector v, 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.
    Between this vector and the provided vector v, this applies the merger function f to each corresponding pair of components, then returns a new vector whose components are populated from the return values of the function f.
    Decimal2.min(Decimal2 v)
    Between this vector and the provided boundary vector v, 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) of 1.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Decimal2.normalizeOrZero()
    Normalizes this vector ot have a Euclidean norm (magnitude) of 1.
    Decimal2.rotate(BigDecimal t)
    Rotates this vector counter-clockwise by the provided angle t.
    Decimal2.subtract(Decimal2 v)
    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.
    Applies the provided transformation function f to 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 Decimal2
    Modifier and Type
    Method
    Description
    Decimal2.add(Decimal2 v)
    Adds another vector to this vector, then returns the resulting vector.
    Decimal2.clamp(Decimal2 min, Decimal2 max)
    Between this vector and the provided boundary vectors min and max, this returns a new vector whose components are clamped to respect the range of [min, max].
    Decimal2.distance(Decimal2 v)
    Returns the Euclidean distance between this vector and the provided vector v.
    Decimal2.distance2(Decimal2 v)
    Returns the squared Euclidean distance between this vector and the provided vector v.
    Returns the Manhattan distance between this vector and the provided vector v.
    Decimal2.dot(Decimal2 v)
    Returns the dot product between this vector and the provided vector v.
    boolean
    Decimal2.equals(Decimal2 v)
    Checks for equality between this vector and the provided vector v.
    Decimal2.max(Decimal2 v)
    Between this vector and the provided boundary vector v, 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.
    Between this vector and the provided vector v, this applies the merger function f to each corresponding pair of components, then returns a new vector whose components are populated from the return values of the function f.
    Decimal2.min(Decimal2 v)
    Between this vector and the provided boundary vector v, 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.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Decimal2.subtract(Decimal2 v)
    Subtracts another vector from this vector, then returns the resulting vector.
  • Uses of Decimal2 in civitas.celestis.math.integer

    Modifier and Type
    Method
    Description
    Integer2.normalize()
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.
    Integer2.normalizeOrZero()
    Normalizes this vector ot have a Euclidean norm (magnitude) of 1.
    Methods in civitas.celestis.math.integer with parameters of type Decimal2
    Modifier and Type
    Method
    Description
    Normalizes this vector to have a Euclidean norm (magnitude) of 1.