| Package | org.flixel |
| Class | public class FlxPoint |
| Inheritance | FlxPoint Object |
| Subclasses | Mouse |
| Method | Defined By | ||
|---|---|---|---|
FlxPoint(X:Number = 0, Y:Number = 0)
Instantiate a new point object. | FlxPoint | ||
Helper function, just copies the values from the specified point. | FlxPoint | ||
copyFromFlash(FlashPoint:Point):FlxPoint
Helper function, just copies the values from the specified Flash point. | FlxPoint | ||
Helper function, just copies the values from this point to the specified point. | FlxPoint | ||
copyToFlash(FlashPoint:Point):Point
Helper function, just copies the values from this point to the specified Flash point. | FlxPoint | ||
Instantiate a new point object. | FlxPoint | ||
| x | property |
public var x:Number
The default value is 0.
| y | property |
public var y:Number
The default value is 0.
| FlxPoint | () | Constructor |
public function FlxPoint(X:Number = 0, Y:Number = 0)Instantiate a new point object.
ParametersX:Number (default = 0) — The X-coordinate of the point in space.
| |
Y:Number (default = 0) — The Y-coordinate of the point in space.
|
| copyFrom | () | method |
public function copyFrom(Point:FlxPoint):FlxPointHelper function, just copies the values from the specified point.
Parameters
Point:FlxPoint — Any FlxPoint.
|
FlxPoint — A reference to itself.
|
| copyFromFlash | () | method |
public function copyFromFlash(FlashPoint:Point):FlxPointHelper function, just copies the values from the specified Flash point.
Parameters
FlashPoint:Point — Any Point.
|
FlxPoint — A reference to itself.
|
| copyTo | () | method |
public function copyTo(Point:FlxPoint):FlxPointHelper function, just copies the values from this point to the specified point.
Parameters
Point:FlxPoint — Any FlxPoint.
|
FlxPoint — A reference to the altered point parameter.
|
| copyToFlash | () | method |
public function copyToFlash(FlashPoint:Point):PointHelper function, just copies the values from this point to the specified Flash point.
Parameters
FlashPoint:Point — Any Point.
|
Point — A reference to the altered point parameter.
|
| make | () | method |
public function make(X:Number = 0, Y:Number = 0):FlxPointInstantiate a new point object.
Parameters
X:Number (default = 0) — The X-coordinate of the point in space.
| |
Y:Number (default = 0) — The Y-coordinate of the point in space.
|
FlxPoint |