#
| source:
src/drawable/instance.Point.js, line 4
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
#
| source:
src/drawable/instance.Point.js, line 31
A Point at (0, 0).
Equal to rac.Point.zero.
zero :Rac.Point
#
| source:
src/drawable/instance.Point.js, line 22
A Point with all values set to zero.
Methods
canvasCenter() → {Rac.Point}
#
| source:
src/p5Drawer/Point.functions.js, line 35
Returns a Point at the center of the canvas.
Added to rac.Point when Rac.P5Drawer is setup as
rac.drawer.
canvasEnd() → {Rac.Point}
#
| source:
src/p5Drawer/Point.functions.js, line 50
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}
#
| source:
src/p5Drawer/Point.functions.js, line 20
Returns a Point at the current position of the pointer.
Added to rac.Point when Rac.P5Drawer is setup as
rac.drawer.