| Package | org.un.flex.utils |
| Class | public class Geometry |
| Method | Defined by | ||
|---|---|---|---|
|
arcosh(x:Number):Number
[static]
Returns inverse of the sine hyperbolic function:
arcosh(x) = ln(x+sqrt(x^2-1)). | Geometry | ||
|
arsinh(x:Number):Number
[static]
Returns inverse of the sine hyperbolic function:
arsinh(x) = ln(x+sqrt(x^2+1)). | Geometry | ||
|
cartFromPolar(r:Number, a:Number):Point
[static]
Calculate cartesian coordinates from polar coordinates,
again this uses the polar method from the Point class,
here for completeness.
| Geometry | ||
|
cartFromPolarDeg(r:Number, a:Number):Point
[static]
Calculate cartesian coordinates from polar coordinates,
again this uses the polar method from the Point class,
here for completeness.
| Geometry | ||
|
cosh(x:Number):Number
[static]
Returns cosine hyperbolic function:
cosh(x) = 0.5e^x+e^(-x)). | Geometry | ||
|
deg2rad(a:Number):Number
[static]
Turns an angle given in degrees into radians.
| Geometry | ||
|
normaliseAngle(a:Number):Number
[static]
Normalizes angles to be within the range of 0 to 2I
by adding or subtracting 2 PI until the angle is within
the range.
| Geometry | ||
|
normaliseAngleDeg(a:Number):Number
[static]
Normalizes angles to be within the range of 0 to 360
by adding or subtracting 360 until the angle is within
the range.
| Geometry | ||
|
polarAngle(p:Point):Number
[static]
Calculate the polar Angle of a Point.
| Geometry | ||
|
polarAngleDeg(p:Point):Number
[static]
Calculate the polar Angle of a Point in degrees.
| Geometry | ||
|
polarRadius(p:Point):Number
[static]
Calculate the polar radius for a given point.
| Geometry | ||
|
rad2deg(a:Number):Number
[static]
Turns an angle given in radians into degrees
| Geometry | ||
|
sinh(x:Number):Number
[static]
Returns sine hyperbolic function:
sinh(x) = 0.5e^x-e^(-x)). | Geometry | ||
| arcosh | () | method |
public static function arcosh(x:Number):Number
Returns inverse of the sine hyperbolic function:
arcosh(x) = ln(x+sqrt(x^2-1)).
x:Number |
Number |
| arsinh | () | method |
public static function arsinh(x:Number):Number
Returns inverse of the sine hyperbolic function:
arsinh(x) = ln(x+sqrt(x^2+1)).
x:Number |
Number |
| cartFromPolar | () | method |
public static function cartFromPolar(r:Number, a:Number):PointCalculate cartesian coordinates from polar coordinates, again this uses the polar method from the Point class, here for completeness.
Parametersr:Number — The polar radius.
|
|
a:Number — The polar angle in radians.
|
Point — A Point object with the cartesian coordinates.
|
See also
| cartFromPolarDeg | () | method |
public static function cartFromPolarDeg(r:Number, a:Number):PointCalculate cartesian coordinates from polar coordinates, again this uses the polar method from the Point class, here for completeness.
Parametersr:Number — The polar radius.
|
|
a:Number — The polar angle in degrees.
|
Point — A Point object with the cartesian coordinates.
|
See also
| cosh | () | method |
public static function cosh(x:Number):Number
Returns cosine hyperbolic function:
cosh(x) = 0.5e^x+e^(-x)).
x:Number |
Number |
| deg2rad | () | method |
public static function deg2rad(a:Number):NumberTurns an angle given in degrees into radians.
Parametersa:Number — The angle given in degrees.
|
Number — The angle in radians.
|
| normaliseAngle | () | method |
public static function normaliseAngle(a:Number):NumberNormalizes angles to be within the range of 0 to 2I by adding or subtracting 2 PI until the angle is within the range.
Parametersa:Number — The angle to normalise in radians.
|
Number — The normalized angle.
|
| normaliseAngleDeg | () | method |
public static function normaliseAngleDeg(a:Number):NumberNormalizes angles to be within the range of 0 to 360 by adding or subtracting 360 until the angle is within the range.
Parametersa:Number — The angle to normalise in degrees.
|
Number — The normalized angle.
|
| polarAngle | () | method |
public static function polarAngle(p:Point):NumberCalculate the polar Angle of a Point.
Parametersp:Point — The Point to which the Angle is needed.
|
Number — The polar angle in radians. The range is from 0 to 2 PI. Returns 0 for the origin.
|
| polarAngleDeg | () | method |
public static function polarAngleDeg(p:Point):NumberCalculate the polar Angle of a Point in degrees.
Parametersp:Point — The Point to which the Angle is needed.
|
Number — The polar angle in degrees. The range is from 0 to 360. Returns 0 for the origin.
|
| polarRadius | () | method |
public static function polarRadius(p:Point):NumberCalculate the polar radius for a given point. This just calles the length method of the Point object, which is the same. It is part of this class for consistency.
Parametersp:Point — The point to receive the polar radius from.
|
Number — The polar radius.
|
See also
| rad2deg | () | method |
public static function rad2deg(a:Number):NumberTurns an angle given in radians into degrees
Parametersa:Number — The angle given in radians.
|
Number — The angle in degrees.
|
| sinh | () | method |
public static function sinh(x:Number):Number
Returns sine hyperbolic function:
sinh(x) = 0.5e^x-e^(-x)).
x:Number |
Number |