public function GeomUtils()
public static function computeRotation(p0:Point, p1:Point):NumberParameters
Returns
public static function computeSegmentLength(source:Point, target:Point):NumberParameters
| source:Point |
| |
| target:Point |
Returns
public static function getArrowCoordinates(sourcePoint:Point, targetPoint:Point, width:Number, height:Number, generateRectangle:Boolean = false):ArrayParameters
| sourcePoint:Point |
| |
| targetPoint:Point |
| |
| width:Number |
| |
| height:Number |
| |
| generateRectangle:Boolean (default = false) |
Returns
public static function getNearestPoint(intersections:Array, sourcePoint:Point):PointParameters
| intersections:Array |
| |
| sourcePoint:Point |
Returns
public static function intersectLineToLine(source1:Point, target1:Point, source2:Point, target2:Point):Point
Calcultaes the intersection point between two segments.
The algorithm is trivial.
Parameters
| source1:Point — First segment source point.
|
| |
| target1:Point — First segment target point.
|
| |
| source2:Point — Second segment source point.
|
| |
| target2:Point — Second segment target point.
|
Returns
See also
public static function intersectLineToRectangle(source:Point, target:Point, rectangle:Rectangle):Array
Computes intersections between a segment and a rectangle.
Parameters
| source:Point — source segment Point.
|
| |
| target:Point — target segment Point.
|
| |
| rectangle:Rectangle — Rectangle.
|
Returns
| Array — Possible intersections.
|
public static const PIO2:Number
90°
public static const TWOPI:Number
360°