ClassCollision & Math@public
FlxPoint
Stores a two-dimensional floating-point coordinate.
ts
export declare class FlxPoint implements PointLikeConstructors
ts
constructor(x?: number, y?: number)Constructs a new instance of the FlxPoint class
| Parameter | Type | Description |
|---|---|---|
x | number | - |
y | number | - |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
x | - | number | - |
y | - | number | - |
Methods
copyFrom()
ts
copyFrom(point: PointLike): thisCopies another point into this instance.
Parameters:
| Parameter | Type | Description |
|---|---|---|
point | PointLike | - |
Returns: this
copyFromFlash()
ts
copyFromFlash(point: PointLike): thisBrowser replacement for copying from flash.geom.Point.
Parameters:
| Parameter | Type | Description |
|---|---|---|
point | PointLike | - |
Returns: this
copyTo()
ts
copyTo<T extends PointLike>(point: T): TCopies this point into the supplied mutable target.
Parameters:
| Parameter | Type | Description |
|---|---|---|
point | T | - |
Returns: T
copyToFlash()
ts
copyToFlash<T extends PointLike>(point: T): TBrowser replacement for copying to flash.geom.Point.
Parameters:
| Parameter | Type | Description |
|---|---|---|
point | T | - |
Returns: T
make()
ts
make(x?: number, y?: number): thisReuses this point with new coordinates.
Parameters:
| Parameter | Type | Description |
|---|---|---|
x | number | - |
y | number | - |
Returns: this