ScaleAndPrecision

abstract class ScaleAndPrecision

Collects both Scale and Precision into one abstract base class. Implements equality based on scale and precision values.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The precision used for formatting measurement values.

Link copied to clipboard
abstract val scale: Scale

The measurement scale defining the ratio between document and real-world measurements.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compares this ScaleAndPrecision with another object for equality. Two ScaleAndPrecision objects are equal if they have the same scale and precision.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for this ScaleAndPrecision based on its scale and precision.