AngleVec

ostrat.geom.AngleVec
See theAngleVec companion object
class AngleVec extends AngleLike

Angle vector, an angle of rotation. Values may be greater than 360 degrees and less than -360 degrees. Negative values represent clockwise rotation. So +720 degrees represents 2 complete anti-clockwise rotations, -1080 degrees represents 3 clockwise rotations.

Attributes

Companion
object
Graph
Supertypes
trait AngleLike
trait Dbl1Elem
trait DblNElem
trait ValueNElem
trait SpecialT
trait ApproxAngle
trait Approx[AngleVec]
trait Equals
trait Tell
trait Persist
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def *(factor: Double): AngleVec

Multiplies this AngleVec by the scalar factor, returns an AngleVec.

Multiplies this AngleVec by the scalar factor, returns an AngleVec.

Attributes

def +(operand: AngleVec): AngleVec

Adds the operand AngleVec to this AngleVec. If you want to add an Angle to this AngleVec use addTo.

Adds the operand AngleVec to this AngleVec. If you want to add an Angle to this AngleVec use addTo.

Attributes

def -(operand: AngleVec): AngleVec

Subtracts the operand AngleVec from this AngleVec.

Subtracts the operand AngleVec from this AngleVec.

Attributes

def /(factor: Double): AngleVec

Divides this AngleVec by the scalar factor, returns an AngleVec.

Divides this AngleVec by the scalar factor, returns an AngleVec.

Attributes

def addDegs(operand: Double): AngleVec

Add the operand in degrees to this AngleVec, returns an AngleVec.

Add the operand in degrees to this AngleVec, returns an AngleVec.

Attributes

def addRotations(operand: Double): AngleVec

Add the operand in rotation to this AngleVec, returns an AngleVec.

Add the operand in rotation to this AngleVec, returns an AngleVec.

Attributes

def addTo(angle: Angle): Angle

Adds this AngleVec to the parameter Angle returns an Angle.

Adds this AngleVec to the parameter Angle returns an Angle.

Attributes

override def approx(that: Any, precision: AngleVec): Boolean

Attributes

Definition Classes
def arcLength(radius: Double): Double

Gives the length of the circumference of the arc.

Gives the length of the circumference of the arc.

Attributes

override def canEqual(that: Any): Boolean

Attributes

Definition Classes

The reverse rotation.

The reverse rotation.

Attributes

def subFrom(angle: Angle): Angle

Subtracts this AngleVec from the parameter Angle returns an Angle. This is equivalent to:

Subtracts this AngleVec from the parameter Angle returns an Angle. This is equivalent to:

angle - thisAngleVec

Attributes

override def tell(style: ShowStyle, maxPlaces: Int, minPlaces: Int): String

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

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

Attributes

Definition Classes
def toVec(magnitude: Double): Vec2

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

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

Attributes

override def typeStr: String

The type of the object to be persisted.

The type of the object to be persisted.

Attributes

Definition Classes

Inherited methods

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 dblBufferAppend(buffer: ArrayBuffer[Double]): Unit

Utility method to append this as an element to an ArrayBuffer[Double]. End users should rarely need to use this method.

Utility method to append this as an element to an ArrayBuffer[Double]. End users should rarely need to use this method.

Attributes

Definition Classes
Inherited from:
Dbl1Elem
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
def dblsEqual(that: Dbl1Elem): Boolean

Attributes

Inherited from:
Dbl1Elem
def degs: Double

The value of this angle expressed in degrees.

The value of this angle expressed in degrees.

Attributes

Inherited from:
AngleLike
override def precisionDefault: AngleVec

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
def sin: Double

The sine value of this angle.

The sine value of this angle.

Attributes

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

Definition Classes
Inherited from:
AngleLike
def str0: String

Show with decimal precision of 0 places.

Show with decimal precision of 0 places.

Attributes

Inherited from:
Tell
def str1: String

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:
Tell
def str2: String

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:
Tell
def str3: String

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:
Tell
final override def tellDepth: Int

The syntactic depth of the tell String for this object.

The syntactic depth of the tell String for this object.

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
Tell -> Any
Inherited from:
Tell

This property determines if the type can be used with Multiple syntax.

This property determines if the type can be used with Multiple syntax.

MyObj * 7

. for describing sequences succinctly. This is not desirable for some types such as numerical and mathematical vector types as this could be confusing 3 * 4 should resolve to an Int of value 12, not a Multiple(3, 4).

Attributes

Inherited from:
Persist

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