Trying to convert the following php method to use in a .less stylesheet:
<?php
$deg2radians = pi() * 2 / 360;
$rad = $degree * $deg2radians;
$costheta = cos($rad);
$sintheta = sin($rad);
?>
In Less, how I might one implement a sine/cosine method without using language-specific cos()/sin() functions?
.rotate(@deg) {
// css transform capable browsers properties...
// IE <= 8
@deg2radians: 3.1416 * 2 / 360;
@rad: @degree * @deg2radians;
@sintheta: sin(@rad); // How to sin()?
@costheta: cos(@rad); // How to cos()?
// filter: transform matrix method...
}