Math utility methods used in SVG import.

| MathUtils | Math utility methods used in SVG import. | 
| Functions | |
| ratioTo | Tim Groleau’s Math method ratioTo. | 
| intersect2Lines | Robert Penner’s Math intersect2Lines. | 
| midLine | Robert Penner’s Math method midLine. | 
| bezierSplit | Robert Penner’s Math method bezierSplit. | 
public static function bezierSplit( p0: Point, p1: Point, p2: Point, p3: Point ):Object // Math.bezierSplit = function (p0, p1, p2, p3) 
Robert Penner’s Math method bezierSplit.
Divides a cubic bezier curve into two halves (each also cubic beziers).
| p0 | first anchor (Point object) | 
| p1 | first control (Point object) | 
| p2 | second control (Point object) | 
| p3 | second anchor (Point object) | 
An object with b0 - 1st cubic bezier (with properties a,b,c,d corresp to p0,p1,p2,p3) b1 - 2nd cubic bezier (same)
Tim Groleau’s Math method ratioTo.
public static function ratioTo( p1: Point, p2: Point, ratio: Number ):Point 
Robert Penner’s Math intersect2Lines.
public static function intersect2Lines( p1: Point, p2: Point, p3: Point, p4: Point ):Point 
Robert Penner’s Math method midLine.
public static function midLine( a: Point, b: Point ):Point // Math.midLine = function (a, b) 
Robert Penner’s Math method bezierSplit.
public static function bezierSplit( p0: Point, p1: Point, p2: Point, p3: Point ):Object // Math.bezierSplit = function (p0, p1, p2, p3)