A common API interface for the floating-point Points to validate API parity between 3D and 2D classes.

Intended for internal usage. Use -D apicheck compilation flag to enable parity validation.

Methods

lerp(p1:Point, p2:Point, k:Float):Void

Sets this Point position to a result of linear interpolation between Points p1 and p2 at the interpolant position k.

normalize():Void

Normalizes the Point.

normalized():Point

Returns a new Point with the normalized values of this Point.

transform(m:M):Void

Applies a given Matrix m transformation to this Point position.

transformed(m:M):Point

Returns a new Point with a result of applying a Matrix m to this Point position.