GeomDoubleExtensions

ostrat.geom.GeomDoubleExtensions
class GeomDoubleExtensions(thisDouble: Double)

Extension methods class for Double, for the geom package.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def *(operator: Length): Length

Extension methods multiplies this scalar Double by the operand Length. If you want a more precise return type such as Netres or Miles put the Length object first.

Extension methods multiplies this scalar Double by the operand Length. If you want a more precise return type such as Netres or Miles put the Length object first.

Attributes

def *(operand: Vec2): Vec2

Multiplication of a 2-dimensional vector by this scalar Double.

Multiplication of a 2-dimensional vector by this scalar Double.

Attributes

def degs: Angle

Converts this Double into an absolute angle of the given degrees from 0 until 360 degrees.

Converts this Double into an absolute angle of the given degrees from 0 until 360 degrees.

Attributes

Degrees rotation clockwise. Converts this Double into an AngleVec a negative angle of rotation. Can return values greater than 360 degrees and less than -360 degrees.

Degrees rotation clockwise. Converts this Double into an AngleVec a negative angle of rotation. Can return values greater than 360 degrees and less than -360 degrees.

Attributes

Degrees rotation anti-clockwise. Converts this Double into an AngleVec a positive angle of rotation. Can return values greater than 360 degrees and less than -360 degrees.

Degrees rotation anti-clockwise. Converts this Double into an AngleVec a positive angle of rotation. Can return values greater than 360 degrees and less than -360 degrees.

Attributes

Returns this Double value in Gigametres.

Returns this Double value in Gigametres.

Attributes

Returns this Double value in Kilares.

Returns this Double value in Kilares.

Attributes

Returns this Double value in Kilometres.

Returns this Double value in Kilometres.

Attributes

Returns this Double value in Megametres.

Returns this Double value in Megametres.

Attributes

Returns this Double value of MegaMiles millions of miles.

Returns this Double value of MegaMiles millions of miles.

Attributes

def metres: Metres

Returns this Double value in Metres.

Returns this Double value in Metres.

Attributes

def miles: Miles

Returns this Double value in Miles.

Returns this Double value in Miles.

Attributes

infix def pp(y: Double): Pt2

Succinct syntax for creating 2-dimensional points Pt2s, from 2 numbers. Note the low precedence of this method relative to most numerical operators. A third number as example

Succinct syntax for creating 2-dimensional points Pt2s, from 2 numbers. Note the low precedence of this method relative to most numerical operators. A third number as example

3.1 pp 4 pp -7.25

can be used to create a [Pt3].

Attributes

def radians: Angle
infix def vv(y: Double): Vec2

Succinct syntax for creating 2-dimensional vectors, Vec2s from 2 numbers. Note the low precedence of this method relative to most numerical operators. A third number as example

Succinct syntax for creating 2-dimensional vectors, Vec2s from 2 numbers. Note the low precedence of this method relative to most numerical operators. A third number as example

3.1 pp 4 pp -7.25

can be used to create a [Pt3].

Attributes

def yards: Yards

Returns this Double value in Yards.

Returns this Double value in Yards.

Attributes