Packageflash.geom
Classpublic class Point
InheritancePoint Inheritance Object



Public Properties
 PropertyDefined By
  length : Number
[read-only]
Point
  x : Number
Point
  y : Number
Point
Public Methods
 MethodDefined By
  
Point(x:Number = 0, y:Number = 0)
Point
 Inherited
_init():*
[static]
_init
  
Point
  
Point
  
[static]
Point
  
equals(toCompare:Point):Boolean
Point
 Inherited
AS3
 Inherited
init():*
[static]
init
  
[static]
Point
 Inherited
AS3
  
normalize(thickness:Number):void
Point
  
offset(dx:Number, dy:Number):void
Point
  
polar(len:Number, angle:Number):Point
[static]
Point
 Inherited
AS3
  
Point
  
Point
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
 Inheritedlength : int = 1
[static]
length
Property Detail
lengthproperty
length:Number  [read-only]


Implementation
    public function get length():Number
xproperty 
public var x:Number

yproperty 
public var y:Number

Constructor Detail
Point()Constructor
public function Point(x:Number = 0, y:Number = 0)



Parameters
x:Number (default = 0)
 
y:Number (default = 0)
Method Detail
add()method
public function add(v:Point):Point

Parameters

v:Point

Returns
Point
clone()method 
public function clone():Point

Returns
Point
distance()method 
public static function distance(pt1:Point, pt2:Point):Number

Parameters

pt1:Point
 
pt2:Point

Returns
Number
equals()method 
public function equals(toCompare:Point):Boolean

Parameters

toCompare:Point

Returns
Boolean
interpolate()method 
public static function interpolate(pt1:Point, pt2:Point, f:Number):Point

Parameters

pt1:Point
 
pt2:Point
 
f:Number

Returns
Point
normalize()method 
public function normalize(thickness:Number):void

Parameters

thickness:Number

offset()method 
public function offset(dx:Number, dy:Number):void

Parameters

dx:Number
 
dy:Number

polar()method 
public static function polar(len:Number, angle:Number):Point

Parameters

len:Number
 
angle:Number

Returns
Point
subtract()method 
public function subtract(v:Point):Point

Parameters

v:Point

Returns
Point
toString()method 
public function toString():String

Returns
String