Packagegraphics.geom
Classpublic class Polar
InheritancePolar Inheritance Object
Implements Geometry

The polar coordinate system is a two-dimensional coordinate system in which each point on a plane is determined by a distance from a fixed point and an angle from a fixed direction.



Public Properties
 PropertyDefined By
  angle : Number
The angle of the polar point.
Polar
  radius : Number
The distance from the pole.
Polar
Public Methods
 MethodDefined By
  
Polar(radius:Number = 0, angle:Number = 0)
Creates a new Polar instance.
Polar
  
clone():*
Returns a shallow copy of this instance.
Polar
  
empty():void
Reset the polar object.
Polar
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
Polar
  
fromObject(o:Object):void
Initialize the Polar object with the passed-in object defines with the attributes angle and radius.
Polar
  
toObject():Object
Returns the Object representation of this object.
Polar
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
Polar
  
toString():String
Returns the string representation of the object.
Polar
Public Constants
 ConstantDefined By
  ZERO : Polar
[static] Defines the Polar object with the radius and angle properties set to zero.
Polar
Property Detail
angleproperty
public var angle:Number

The angle of the polar point.

radiusproperty 
public var radius:Number

The distance from the pole.

Constructor Detail
Polar()Constructor
public function Polar(radius:Number = 0, angle:Number = 0)

Creates a new Polar instance.

Parameters
radius:Number (default = 0) — The distance from the pole.
 
angle:Number (default = 0) — The angle of the polar object.
Method Detail
clone()method
public function clone():*

Returns a shallow copy of this instance.

Returns
* — a shallow copy of this instance.
empty()method 
public function empty():void

Reset the polar object.

equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
fromObject()method 
public function fromObject(o:Object):void

Initialize the Polar object with the passed-in object defines with the attributes angle and radius.

Parameters

o:Object

toObject()method 
public function toObject():Object

Returns the Object representation of this object.

Returns
Object — the Object representation of this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns the string representation of the object.

Returns
String — the string representation of the object.
Constant Detail
ZEROConstant
public static const ZERO:Polar

Defines the Polar object with the radius and angle properties set to zero.