DoubleImplicitGeom

ostrat.geom.DoubleImplicitGeom
class DoubleImplicitGeom(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 *(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

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