The instance.Segment
function contains convenience methods and members
for Rac.Segment
objects setup with the owning Rac
instance.
- Source:
Members
zero :Rac.Segment
A Segment
with all values set to zero, , starts at
instance.Point#zero
, points to
instance.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 instance.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 instance.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 instance.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 instance.Segment
when Rac.P5Drawer
is setup as
rac.drawer
.