IntGeomExtensions

ostrat.geom.IntGeomExtensions
class IntGeomExtensions(thisInt: Int)

Extension methods class for Int, 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 Int 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 Int 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 Int.

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

Attributes

def degs: Angle

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

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

Attributes

Degrees rotation clockwise. Converts this Int 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 Int 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 Int 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 Int into an AngleVec a positive angle of rotation. Can return values greater than 360 degrees and less than -360 degrees.

Attributes

Returns this Int value in Gigametres.

Returns this Int value in Gigametres.

Attributes

Returns this Int value in Kilares, Kilometres². kilares folows the same naming convention as Hectaress.

Returns this Int value in Kilares, Kilometres². kilares folows the same naming convention as Hectaress.

Attributes

Returns this Int value in Kilometres.

Returns this Int value in Kilometres.

Attributes

Returns this Int value in Megametres.

Returns this Int value in Megametres.

Attributes

Returns this Int value in MegaMiles millions of miles.

Returns this Int value in MegaMiles millions of miles.

Attributes

def metres: Metres

Returns this Int value in Metres.

Returns this Int value in Metres.

Attributes

def miles: Miles

Returns this Int value in Miles.

Returns this Int 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

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 vv 4 vv -7.25

can be used to create a Vec3.

Attributes

def °: Angle