instance. Point

Members and methods attached to the rac.Point function.

The function contains ready-made convenience Point objects for usual values, all setup with the owning Rac instance.

Example
let rac = new Rac()
rac.Point.origin // ready-made origin point
rac.Point.origin.rac === rac // true

Members

origin :Rac.Point

A Point at (0, 0).

Equal to rac.Point.zero.

zero :Rac.Point

A Point with all values set to zero.

Methods

canvasCenter() → {Rac.Point}

Returns a Point at the center of the canvas.

Added to rac.Point when Rac.P5Drawer is setup as rac.drawer.

canvasEnd() → {Rac.Point}

Returns a Point at the end of the canvas, that is, at the position (width,height).

Added to rac.Point when Rac.P5Drawer is setup as rac.drawer.

pointer() → {Rac.Point}

Returns a Point at the current position of the pointer.

Added to rac.Point when Rac.P5Drawer is setup as rac.drawer.