Interface that can be used to find bends at specific locations in the canvas.
This interface is mostly provided through the lookup
of
IEdge
implementations.
public function getBend(x:Number, y:Number, ctx:ICanvasContext):IBend
Returns the bend at the given world coordinate position or null
if there
is no such bend.
Parameters
| x:Number — The x coordinate of the position in the world coordinate system.
|
|
| y:Number — The y coordinate of the position in the world coordinate system.
|
|
| ctx:ICanvasContext — The canvas context to use for querying the position.
|
Returns | IBend — The bend at the position or null .
|
public function getBends(box:IRectangle, ctx:ICanvasContext):Iterable
Returns the bends for the given marquee rectangle.
Parameters
| box:IRectangle — The marquee selection box in the world coordinate system.
|
|
| ctx:ICanvasContext — he canvas context to use for querying the position.
|
Returns | Iterable — An Iterable over the bends inside the marquee selection box.
|
Wed Oct 7 2015, 04:52 PM +02:00