Orientation

io.github.srs.model.entity.Orientation
See theOrientation companion trait
object Orientation

Companion object for Orientation, providing a factory method.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(degree: Double): Orientation

Creates a new Orientation instance from an angle in degrees.

Creates a new Orientation instance from an angle in degrees.

Value parameters

degree

the angle in degrees.

Attributes

Returns

a new Orientation representing the given angle.

def fromRadians(radians: Double): Orientation

Creates a new Orientation instance from an angle in radians.

Creates a new Orientation instance from an angle in radians.

Value parameters

radians

the angle in radians.

Attributes

Returns

a new Orientation representing the given angle.