Packagecom.joshtynjala.utils
Classpublic class BezierUtil

Utility functions used for drawing bezier curves.



Public Methods
 MethodDefined by
  
drawBezierCurve(graphics:Graphics, start:Point, end:Point, controls:Array, precision:int):void
[static] Draws a bezier curve.
BezierUtil
Method detail
drawBezierCurve()method
public static function drawBezierCurve(graphics:Graphics, start:Point, end:Point, controls:Array, precision:int):void

Draws a bezier curve.

Parameters
graphics:Graphics — The Graphics object to which to draw the curve.
 
start:Point — The point at which to begin drawing.
 
end:Point — The point at which to end drawing.
 
controls:Array — The control points of the curve.
 
precision:int — The number of line segments to use to draw the curve.