Angle

final
class Angle extends AnyVal with AngleLike with Ordered[Angle] with ElemDbl1

Angle of inclination. Its particularly important not to use this class to represent Latitudes as the Angle class has a normal range 0 <= a < 360 degrees, while Latitudes have a normal range +- 90 degrees. Unlike AngleVec this class has no multiply or divide, * or / methods. It has add and subtract, + and - methods, but these take AngleVecs as operands not other Angles. To Add,subtract or scale angles of inclination would make no sense.

Companion
object
trait Ordered[Angle]
trait Comparable[Angle]
class Object
trait AngleLike
trait ElemDbl1
trait ElemDblN
trait SpecialT
trait Equals
trait Show
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def +(other: AngleVec): Angle
def -(other: AngleVec): Angle
def addRadians(other: Double): Angle
override
def approx(that: Any, precision: AngleVec): Boolean
Definition Classes
def bisectNeg(operand: Angle): Angle

bisects the negative or clockwise arc between this Angle and the operand Angle.

bisects the negative or clockwise arc between this Angle and the operand Angle.

def bisectPos(operand: Angle): Angle

bisects the positive or anti-clockwise arc between this Angle and the operand Angle.

bisects the positive or anti-clockwise arc between this Angle and the operand Angle.

override
def canEqual(that: Any): Boolean
Definition Classes
Equals
override
def compare(that: Angle): Int
Definition Classes
Ordered
def degStr2: String

Returns the negative AngleVec from this Angle to the operand Angle. A value from 0 until -360 degrees.

Returns the negative AngleVec from this Angle to the operand Angle. A value from 0 until -360 degrees.

Returns the positive AngleVec from this Angle to the operand Angle. A value from 0 until 360 degrees.

Returns the positive AngleVec from this Angle to the operand Angle. A value from 0 until 360 degrees.

def m90: Angle

Minus 90, subtract 90 degrees from this Angle, rotate this angle by 90 degrees in a clockwise direction.

Minus 90, subtract 90 degrees from this Angle, rotate this angle by 90 degrees in a clockwise direction.

def p180: Angle

plus 180, adds / subtracts 180 degrees from this Angle. As an Angle's range is 360 > a >= 0, adding or subtracting 180 degrees gives the same result.

plus 180, adds / subtracts 180 degrees from this Angle. As an Angle's range is 360 > a >= 0, adding or subtracting 180 degrees gives the same result.

def p90: Angle

Plus 90, add 90 degrees to this Angle, rotate this angle by 90 degrees in an anti-clockwise direction.

Plus 90, add 90 degrees to this Angle, rotate this angle by 90 degrees in an anti-clockwise direction.

override
def show(way: Way, maxPlaces: Int, minPlaces: Int): String

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Intended to be a multiple parameter comprehensive Show method. Intended to be paralleled by showT method on ShowT type class instances.

Definition Classes
def subRadians(other: Double): Angle
def toVec2(magnitude: Double): Vec2

Creates a Vec2 from this Angle for the given scalar magnitude parameter.

Creates a Vec2 from this Angle for the given scalar magnitude parameter.

override
def typeStr: String
Definition Classes

Inherited methods

def <(that: Angle): Boolean
Inherited from
Ordered
def <=(that: Angle): Boolean
Inherited from
Ordered
def >(that: Angle): Boolean
Inherited from
Ordered
def >=(that: Angle): Boolean
Inherited from
Ordered
def compareTo(that: Angle): Int
Inherited from
Ordered
@inline
def cos: Double

The cosine value of this angle.

The cosine value of this angle.

Inherited from
AngleLike
@inline
final override
def dbl1: Double
Definition Classes
Inherited from
AngleLike
def dblsEqual(that: ElemDbl1): Boolean
Inherited from
ElemDbl1
@inline
def degs: Double

The value of this angle expressed in degrees.

The value of this angle expressed in degrees.

Inherited from
AngleLike
Definition Classes
Inherited from
ApproxAngle
@inline
final
def radians: Double

The value of the angle expressed in radians.

The value of the angle expressed in radians.

Inherited from
AngleLike
@inline
final
def secs: Double

The value of this angle expressed in arc seconds of a degree.

The value of this angle expressed in arc seconds of a degree.

Inherited from
AngleLike
@inline
def sin: Double

The sine value of this angle.

The sine value of this angle.

Inherited from
AngleLike
final override
def str: String
Definition Classes
Inherited from
AngleLike
final override
def syntaxdepth: Int
Definition Classes
Inherited from
AngleLike
override
def toString: String
Definition Classes
Show -> Any
Inherited from
Show

Concrete fields

val milliSecs: Double