Packageorg.flixel
Classpublic class FlxPoint
InheritanceFlxPoint Inheritance Object
Subclasses FlxRect

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
  
toString():String
Convert object to readable string name.
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
toString()method
public function toString():String

Convert object to readable string name. Useful for debugging, save games, etc.

Returns
String