| Package | graphics.geom |
| Class | public class Polar |
| Inheritance | Polar Object |
| Implements | Geometry |
| Property | Defined By | ||
|---|---|---|---|
| angle : Number
The angle of the polar point. | Polar | ||
| radius : Number
The distance from the pole. | Polar | ||
| Method | Defined 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 | ||
| Constant | Defined By | ||
|---|---|---|---|
| ZERO : Polar [static]
Defines the Polar object with the radius and angle properties set to zero. | Polar | ||
| angle | property |
public var angle:NumberThe angle of the polar point.
| radius | property |
public var radius:NumberThe distance from the pole.
| Polar | () | Constructor |
public function Polar(radius:Number = 0, angle:Number = 0)Creates a new Polar instance.
Parametersradius:Number (default = 0) — The distance from the pole.
| |
angle:Number (default = 0) — The angle of the polar object.
|
| clone | () | method |
public function clone():*Returns a shallow copy of this instance.
Returns* — a shallow copy of this instance.
|
| empty | () | method |
public function empty():voidReset the polar object.
| equals | () | method |
public function equals(o:*):BooleanCompares the specified object with this object for equality.
Parameters
o:* |
Boolean — true if the the specified object is equal with this object.
|
| fromObject | () | method |
public function fromObject(o:Object):voidInitialize the Polar object with the passed-in object defines with the attributes angle and radius.
Parameters
o:Object |
| toObject | () | method |
public function toObject():ObjectReturns the Object representation of this object.
ReturnsObject — the Object representation of this object.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns the string representation of the object.
ReturnsString — the string representation of the object.
|
| ZERO | Constant |
public static const ZERO:PolarDefines the Polar object with the radius and angle properties set to zero.