The Radians object provides utilities and type class instances for the Radians type. It defines operators and equality mechanisms to enable operations and comparisons for instances of Radians and its related subtypes.
Provides a DyadicOperator instance for the Radians type, enabling binary operations on operands of type Radians or its subtypes.
Provides a DyadicOperator instance for the Radians type, enabling binary operations on operands of type Radians or its subtypes.
This instance delegates the operation logic to the DyadicOperator of the Angle type if both operands are of type Angle. Otherwise, it applies the provided operation function directly to the operands.
Attributes
Returns
A DyadicOperator[Radians] that supports performing operations on Radians instances and optionally delegates to the Angle operator when applicable.
Provides an instance of the Eq type class for Radians, enabling equality comparison between two instances of Radians. The comparison is implemented using a dyadic operation, which delegates to the DyadicOperator for Radians. The equality check may involve evaluating the operands in an eager context and comparing their values.
Provides an instance of the Eq type class for Radians, enabling equality comparison between two instances of Radians. The comparison is implemented using a dyadic operation, which delegates to the DyadicOperator for Radians. The equality check may involve evaluating the operands in an eager context and comparing their values.
Attributes
Returns
An instance of the Eq type class for Radians, where equality is determined based on the dyadic operation and the result of the comparison.
Provides a given FuzzyEq instance for the Radians type.
Provides a given FuzzyEq instance for the Radians type.
This instance defines fuzzy equality for Radians by checking strict equality first, and if that fails, by using the fuzzyEqv method with the given threshold p. The logic ensures reliable approximate comparisons for Radians values.
Attributes
Returns
A FuzzyEq[Radians] instance enabling approximate equality checks for Radians.