Class org.as2lib.data.type.Degree

Implemented Interfaces

Angle

Description

Degree represents a angle in degree.

Field Index

Inherited from Number

MAX_VALUE, MIN_VALUE, NaN, NEGATIVE_INFINITY, POSITIVE_INFINITY

Method Index

new Degree()
toDegree(), toRadian(), toString(), valueOf()

Constructor Detail

Degree

public function Degree(degree:Number)

Constructs a new Degree instance.

Parameters

degreethe angle in degree

Method Detail

valueOf

public function valueOf(Void):Number

Returns the angle in degree as number.

Return

the angle in degree as number

toRadian

public function toRadian(Void):Number

Returns the angle in radian.

Return

the angle in radian

Specified By

toRadian() in org.as2lib.data.type.Angle

toDegree

public function toDegree(Void):Number

Returns the angle in degree.

Return

the angle in degree

Specified By

toDegree() in org.as2lib.data.type.Angle

toString

public function toString():String

Returns the string representation of this instance.

The string representation is obtained via the stringifier returned by the Config.getObjectStringifier method.

Return

the string representation of this instance