BinOp

org.abh80.nf.core.metrics.AngleUnit.BinOp
implicit class BinOp(self: AngleUnit)

Provides arithmetic and comparison operations for AngleUnit instances.

Value parameters

self

the AngleUnit instance

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def *(second: AngleUnit): AngleUnit

Multiplies two angle units.

Multiplies two angle units.

Value parameters

second

the other angle unit

Attributes

Returns

the product as an AngleUnit

def +(second: AngleUnit): AngleUnit

Adds two angle units.

Adds two angle units.

Value parameters

second

the other angle unit

Attributes

Returns

the sum as an AngleUnit

def -(second: AngleUnit): AngleUnit

Subtracts one angle unit from another.

Subtracts one angle unit from another.

Value parameters

second

the other angle unit

Attributes

Returns

the difference as an AngleUnit

def /(second: AngleUnit): AngleUnit

Divides one angle unit by another.

Divides one angle unit by another.

Value parameters

second

the other angle unit

Attributes

Returns

the quotient as an AngleUnit

def ~(second: AngleUnit, epsilon: Double): Boolean

Compares two angle units for approximate equality.

Compares two angle units for approximate equality.

Value parameters

epsilon

the tolerance for comparison

second

the other angle unit

Attributes

Returns

true if the difference is less than epsilon, false otherwise