Function __global->cos
Definitions
sources_custom/phpstub.php
- Calculate the cosine of an angle.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: float
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $angle | float | No | No | required parameter | N/A | N/A | The angle in radians |
Returns
- The cosine
- Type: float
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Calculate the cosine of an angle.
*
* @param float $angle The angle in radians
* @return float The cosine
*/
function cos(float $angle) : float
* Calculate the cosine of an angle.
*
* @param float $angle The angle in radians
* @return float The cosine
*/
function cos(float $angle) : float

