Members and methods attached to the
rac.Segment function.
The function contains ready-made convenience
Segment objects for usual values, all setup with
the owning Rac instance.
Example
let rac = new Rac()
rac.Segment.zero // ready-made zero segment
rac.Segment.zero.rac === rac // true
Members
zero :Rac.Segment
A Segment with all values set to zero, starts at
rac.Point.zero, points to
rac.Angle.zero, and has a length of
zero.
Methods
canvasBottom() → {Rac.Segment}
Returns a Segment that covers the bottom of the canvas, from
bottom-left to bottom-right.
Added to rac.Segment when Rac.P5Drawer is setup as
rac.drawer.
canvasLeft() → {Rac.Segment}
Returns a Segment that covers the left of the canvas, from top-left
to bottom-left.
Added to rac.Segment when Rac.P5Drawer is setup as
rac.drawer.
canvasRight() → {Rac.Segment}
Returns a Segment that covers the right of the canvas, from top-right
to bottom-right.
Added to rac.Segment when Rac.P5Drawer is setup as
rac.drawer.
canvasTop() → {Rac.Segment}
Returns a Segment that covers the top of the canvas, from top-left to
top-right.
Added to rac.Segment when Rac.P5Drawer is setup as
rac.drawer.