Skip to content

Static Functions

create(x?:Float, y?:Float):Point

Description

interpolate(point1:Point, point2:Point, fraction:Float):Point

Description

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:

  • a0 - First point of line segment A
  • a1 - Second point of line segment A
  • b0 - First point of line segment B
  • b1 - Second point of line segment B
  • out - An existing point object to be used as a return value instead of allocating a new Point.

polar(len:Float, angle:Float, outPoint?:Point):Point

Description

Instance Variables

stable

Type

Bool

Initial Value

false

Description

x

Type

Float

Initial Value

n/a

Description

y

Type

Float

Initial Value

n/a

Description

Instance Functions

add(other:TPoint):TPoint

Description

Adds other into this point, returns this Parameters:

  • other - The other point to add

clone():TPoint

Description

copyFrom(point:TPoint):Void

Description

dispose():Void

Description

distance(point:TPoint):Float

Description

distanceSquared(point:TPoint):Float

Description

Fast relative distance calculator

equals(point:TPoint):Bool

Description

init(x?:Float, y?:Float):TPoint

Description

offset(x:Float, y:Float):Void

Description

scale(x:Float, y:Float):Void

Description