Packageorg.flixel
Classpublic class FlxPoint
InheritanceFlxPoint Inheritance Object
Subclasses Mouse

Stores a 2D floating point coordinate.



Public Properties
 PropertyDefined By
  x : Number
FlxPoint
  y : Number
FlxPoint
Public Methods
 MethodDefined 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
  
make(X:Number = 0, Y:Number = 0):FlxPoint
Instantiate a new point object.
FlxPoint
Property Detail
xproperty
public var x:Number

The default value is 0.

yproperty 
public var y:Number

The default value is 0.

Constructor Detail
FlxPoint()Constructor
public function FlxPoint(X:Number = 0, Y:Number = 0)

Instantiate 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.
Method Detail
copyFrom()method
public function copyFrom(Point:FlxPoint):FlxPoint

Helper function, just copies the values from the specified point.

Parameters

Point:FlxPoint — Any FlxPoint.

Returns
FlxPoint — A reference to itself.
copyFromFlash()method 
public function copyFromFlash(FlashPoint:Point):FlxPoint

Helper function, just copies the values from the specified Flash point.

Parameters

FlashPoint:Point — Any Point.

Returns
FlxPoint — A reference to itself.
copyTo()method 
public function copyTo(Point:FlxPoint):FlxPoint

Helper function, just copies the values from this point to the specified point.

Parameters

Point:FlxPoint — Any FlxPoint.

Returns
FlxPoint — A reference to the altered point parameter.
copyToFlash()method 
public function copyToFlash(FlashPoint:Point):Point

Helper function, just copies the values from this point to the specified Flash point.

Parameters

FlashPoint:Point — Any Point.

Returns
Point — A reference to the altered point parameter.
make()method 
public function make(X:Number = 0, Y:Number = 0):FlxPoint

Instantiate 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.

Returns
FlxPoint