Angle

ostrat.geom.Angle
See theAngle companion object
final class Angle extends AnyVal with AngleLike with Ordered[Angle] with Dbl1Elem

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.

Attributes

Companion:
object
Graph
Supertypes
trait Ordered[Angle]
trait Comparable[Angle]
class Object
trait AngleLike
trait Dbl1Elem
trait DblNElem
trait SpecialT
trait Equals
trait ShowDec
trait Show
trait TypeStr
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def +(other: AngleVec): Angle
def -(operand: Angle): AngleVec
Implicitly added by ExtensionImplicts

Subtracting one angle of inclination from another angle of inclination returns an angle of rotation.

Subtracting one angle of inclination from another angle of inclination returns an angle of rotation.

Attributes

def -(other: AngleVec): Angle
def addRadians(other: Double): Angle
override def approx(that: Any, precision: AngleVec): Boolean

Attributes

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.

Attributes

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.

Attributes

override def canEqual(that: Any): Boolean

Attributes

Definition Classes
override def compare(that: Angle): Int

Attributes

Definition Classes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

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.

Attributes

override def showDec(style: ShowStyle, 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.

Attributes

Definition Classes
def subRadians(other: Double): Angle
def toPtM2(operand: Length): PtM2
Implicitly added by ExtensionImplicts
def toPtM3(operand: Length, zValue: Length): PtM3
Implicitly added by ExtensionImplicts
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.

Attributes

override def typeStr: String

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

The RSON type of T. This the only data that a ShowT instance requires, that can't be implemented through delegation to an object of type Show.

Attributes

Definition Classes

Inherited methods

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered
def cos: Double

The cosine value of this angle.

The cosine value of this angle.

Attributes

Inherited from:
AngleLike
final override def dbl1: Double

Attributes

Definition Classes
Inherited from:
AngleLike
override def dblForeach(f: Double => Unit): Unit

Performs the side effecting function on each Double in this Product element.

Performs the side effecting function on each Double in this Product element.

Attributes

Definition Classes
Inherited from:
Dbl1Elem

Attributes

Inherited from:
Dbl1Elem

The value of this angle expressed in degrees.

The value of this angle expressed in degrees.

Attributes

Inherited from:
AngleLike

Attributes

Definition Classes
Inherited from:
ApproxAngle
final def radians: Double

The value of the angle expressed in radians.

The value of the angle expressed in radians.

Attributes

Inherited from:
AngleLike
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.

Attributes

Inherited from:
AngleLike
override def show(style: ShowStyle): 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.

Attributes

Definition Classes
Inherited from:
ShowDec
def showDec(style: ShowStyle, maxPlaces: 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.

Attributes

Inherited from:
Show
def sin: Double

The sine value of this angle.

The sine value of this angle.

Attributes

Inherited from:
AngleLike
def str: String

The most basic Show method, paralleling the strT method on ShowT type class instances.

The most basic Show method, paralleling the strT method on ShowT type class instances.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 1 place padding with a zero if necessary.

Show with decimal precision of 1 place padding with a zero if necessary.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 2 places padding with zeros if necessary.

Show with decimal precision of 2 places padding with zeros if necessary.

Attributes

Inherited from:
ShowDec

Show with decimal precision of 3 places padding with zeros if necessary.

Show with decimal precision of 3 places padding with zeros if necessary.

Attributes

Inherited from:
ShowDec
final override def syntaxDepth: Int

Attributes

Definition Classes
Inherited from:
AngleLike
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Show -> Any
Inherited from:
Show

Concrete fields

The angle expressed in thousandths of an arc second of a degree.

The angle expressed in thousandths of an arc second of a degree.

Attributes