| Package | graphics |
| Class | public class CardinalDirection |
| Inheritance | CardinalDirection Object |
| Method | Defined By | ||
|---|---|---|---|
CardinalDirection(value:Number = 0, name:String, azimut:Number = 0)
Creates a new CardinalDirection instance. | CardinalDirection | ||
azimut():Number
Indicates the angular measurement in a spherical coordinate system (in degrees). | CardinalDirection | ||
isDiagonal(direction:CardinalDirection):Boolean [static]
Returns true if this is a diagonal direction (northeast, southeast, southwest, northwest). | CardinalDirection | ||
isOrthogonal(direction:CardinalDirection):Boolean [static]
Returns true if this is an orthogonal direction (north, east, south, west). | CardinalDirection | ||
toSource(indent:int = 0):String
Returns the source code String representation of the object. | CardinalDirection | ||
toString():String
Returns the String representation of the object. | CardinalDirection | ||
valueOf():Number
Returns the primitive value of the object. | CardinalDirection | ||
| Constant | Defined By | ||
|---|---|---|---|
| ALL : Array [static]
The set of all diagonal directions (northeast, southeast, southwest, northwest). | CardinalDirection | ||
| DIAGONALS : Array [static]
The set of all diagonal directions (northeast, southeast, southwest, northwest). | CardinalDirection | ||
| E : CardinalDirection [static]
The East cardinal point "E" : Azimut:90° Radians:π/2
| CardinalDirection | ||
| ENE : CardinalDirection [static]
The East-North-East cardinal point "ENE" : Azimut:67.5° Radians:3π/8
| CardinalDirection | ||
| ESE : CardinalDirection [static]
The East-South-East cardinal point "ESE" : Azimut:112,5° Radians:5π/8
| CardinalDirection | ||
| N : CardinalDirection [static]
The North cardinal point "N" : Azimut:0° Radians:0
| CardinalDirection | ||
| NE : CardinalDirection [static]
The North-East cardinal point "NE" : Azimut:45° Radians:π/4
| CardinalDirection | ||
| NNE : CardinalDirection [static]
The North-North-East cardinal point "NNE" : Azimut:22.5° Radians:π/8
| CardinalDirection | ||
| NNW : CardinalDirection [static]
The North-North-West cardinal point "NNW" : Azimut:337.5° Radians:15π/8
| CardinalDirection | ||
| NW : CardinalDirection [static]
The North-West cardinal point "NW" : Azimut:315° Radians:7π/4
| CardinalDirection | ||
| ORTHOGONALS : Array [static]
The set of all orthogonals directions (north, south, south, north). | CardinalDirection | ||
| S : CardinalDirection [static]
The South cardinal point "S" : Azimut:180° Radians:π
| CardinalDirection | ||
| SE : CardinalDirection [static]
The South-East cardinal point "SE" : Azimut:135° Radians:3π/4
| CardinalDirection | ||
| SSE : CardinalDirection [static]
The South-South-East cardinal point "SSE" : Azimut:157.5° Radians:7π/8
| CardinalDirection | ||
| SSW : CardinalDirection [static]
The South-South-West cardinal point "SSW" : Azimut:202.5° Radians:9π/8
| CardinalDirection | ||
| SW : CardinalDirection [static]
The South-West cardinal point "SW" : Azimut:225° Radians:5π/4
| CardinalDirection | ||
| W : CardinalDirection [static]
The West cardinal point "W" : Azimut:270° Radians:3π/2
| CardinalDirection | ||
| WNW : CardinalDirection [static]
The West-North-West cardinal point "WNW" : Azimut:292.5° Radians:13π/8
| CardinalDirection | ||
| WSW : CardinalDirection [static]
The West-South-West cardinal point "WSW" : Azimut:247.5° Radians:11π/8
| CardinalDirection | ||
| CardinalDirection | () | Constructor |
public function CardinalDirection(value:Number = 0, name:String, azimut:Number = 0)Creates a new CardinalDirection instance.
Parametersvalue:Number (default = 0) — The value of the enumeration.
| |
name:String — The name key of the enumeration.
| |
azimut:Number (default = 0) |
| azimut | () | method |
public function azimut():NumberIndicates the angular measurement in a spherical coordinate system (in degrees).
ReturnsNumber |
| isDiagonal | () | method |
public static function isDiagonal(direction:CardinalDirection):BooleanReturns true if this is a diagonal direction (northeast, southeast, southwest, northwest).
Parameters
direction:CardinalDirection |
Boolean — true if this is a diagonal direction.
|
| isOrthogonal | () | method |
public static function isOrthogonal(direction:CardinalDirection):BooleanReturns true if this is an orthogonal direction (north, east, south, west).
Parameters
direction:CardinalDirection |
Boolean — true if this is an orthogonal direction.
|
| 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.
|
| valueOf | () | method |
public function valueOf():NumberReturns the primitive value of the object.
ReturnsNumber — the primitive value of the object.
|
| ALL | Constant |
public static const ALL:ArrayThe set of all diagonal directions (northeast, southeast, southwest, northwest).
| DIAGONALS | Constant |
public static const DIAGONALS:ArrayThe set of all diagonal directions (northeast, southeast, southwest, northwest).
| E | Constant |
public static const E:CardinalDirectionThe East cardinal point "E" : Azimut:90° Radians:π/2
| ENE | Constant |
public static const ENE:CardinalDirectionThe East-North-East cardinal point "ENE" : Azimut:67.5° Radians:3π/8
| ESE | Constant |
public static const ESE:CardinalDirectionThe East-South-East cardinal point "ESE" : Azimut:112,5° Radians:5π/8
| N | Constant |
public static const N:CardinalDirectionThe North cardinal point "N" : Azimut:0° Radians:0
| NE | Constant |
public static const NE:CardinalDirectionThe North-East cardinal point "NE" : Azimut:45° Radians:π/4
| NNE | Constant |
public static const NNE:CardinalDirectionThe North-North-East cardinal point "NNE" : Azimut:22.5° Radians:π/8
| NNW | Constant |
public static const NNW:CardinalDirectionThe North-North-West cardinal point "NNW" : Azimut:337.5° Radians:15π/8
| NW | Constant |
public static const NW:CardinalDirectionThe North-West cardinal point "NW" : Azimut:315° Radians:7π/4
| ORTHOGONALS | Constant |
public static const ORTHOGONALS:ArrayThe set of all orthogonals directions (north, south, south, north).
| S | Constant |
public static const S:CardinalDirectionThe South cardinal point "S" : Azimut:180° Radians:π
| SE | Constant |
public static const SE:CardinalDirectionThe South-East cardinal point "SE" : Azimut:135° Radians:3π/4
| SSE | Constant |
public static const SSE:CardinalDirectionThe South-South-East cardinal point "SSE" : Azimut:157.5° Radians:7π/8
| SSW | Constant |
public static const SSW:CardinalDirectionThe South-South-West cardinal point "SSW" : Azimut:202.5° Radians:9π/8
| SW | Constant |
public static const SW:CardinalDirectionThe South-West cardinal point "SW" : Azimut:225° Radians:5π/4
| W | Constant |
public static const W:CardinalDirectionThe West cardinal point "W" : Azimut:270° Radians:3π/2
| WNW | Constant |
public static const WNW:CardinalDirectionThe West-North-West cardinal point "WNW" : Azimut:292.5° Radians:13π/8
| WSW | Constant |
public static const WSW:CardinalDirectionThe West-South-West cardinal point "WSW" : Azimut:247.5° Radians:11π/8