Constructor
inlinenew(x:Float = 0., y:Float = 0.)
Create a new Point instance.
Parameters:
x | The horizontal position of the point. |
---|---|
y | The vertical position of the point. |
Variables
Methods
inlinelerp(a:Point, b:Point, k:Float):Void
Sets this Point position to a result of linear interpolation between Points p1
and p2
at the interpolant position k
.
inlinescaled(v:Float):Point
Returns a new Point with the position of this Point multiplied by a given scalar v
.
inlinetoIPoint(scale:Float = 1.):IPoint
Converts this point to integer point scaled by provided scalar scale
(rounded).
inlinetransform2x2(m:Matrix):Void
Applies a given 2x2 Matrix m
transformation to this Point position.
inlinetransformed(m:Matrix):Point
Returns a new Point with a result of applying a Matrix m
to this Point position.
inlinetransformed2x2(m:Matrix):Point
Returns a new Point with a result of applying a 2x2 Matrix m
to this Point position.