Static Functions
Point.create(x?:Float, y?:Float):Point
community description
Creates a new Point Instance
Point.interpolate(point1:Point, point2:Point, fraction:Float):Point
Point.lineSegmentsIntersect(a0:Point, a1:Point, b0:Point, b1:Point, out?:Point):Point
description
Gets the interesection between two line segments (or null if no intersection can be found) Parameters:
- First point of line segment A
- Second point of line segment A
- First point of line segment B
- Second point of line segment B
- An existing point object to be used as a return value instead of allocating a new Point.
Point.polar(len:Float, angle:Float, outPoint?:Point):Point
Instance Variables
stable
Type
Bool
Initial Value
false
x
Type
Float
community description
The x-position of the Point instance
y
Type
Float
community description
The y-position of the Point instance
Instance Functions
add(other:TPoint):TPoint
description
Adds other into this point, returns this Parameters:
- The other point to add
clone():TPoint
copyFrom(point:TPoint):Void
dispose():Void
community description
Please make sure to dispose your points!
distance(point:TPoint):Float
distanceSquared(point:TPoint):Float
description
Fast relative distance calculator