IntGeomImplicit

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

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