Angle
Table of Contents
| toDegrees() | DEGREES. | float|string |
|---|---|---|
| toRadians() | RADIANS. | float|string |
Methods
toDegrees()
DEGREES.
public
static toDegrees(
$number :
mixed
)
: float|string
Returns the result of builtin function rad2deg after validating args.
Parameters
- $number : mixed
Should be numeric
Return values
float|string —Rounded number
toRadians()
RADIANS.
public
static toRadians(
$number :
mixed
)
: float|string
Returns the result of builtin function deg2rad after validating args.
Parameters
- $number : mixed
Should be numeric
Return values
float|string —Rounded number