HH\Lib\Math\sin
Returns the sine of $arg
namespace HH\Lib\Math;
function sin(
num $arg,
): float;
- To find the cosine, see
Math\cos(). - To find the tangent, see
Math\tan().
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";