HH\Lib\Math\sin

Meta Engineer?

This is available as Math\sin in the www repository.

Returns the sine of $arg

namespace HH\Lib\Math;

function sin(
  num $arg,
): float;

Parameters

  • num $arg

Returns

  • float

Examples

$rotation = 0;
$result = Math\sin($rotation);
echo "Math\sin of $rotation : $result \n";

$rotation = 90;
$result = Math\sin($rotation);
echo "Math\sin of $rotation : $result \n";

$rotation = 180;
$result = Math\sin($rotation);
echo "Math\sin of $rotation : $result \n";