Skip to content

Instantly share code, notes, and snippets.

@Weiyuan-Lane
Created June 23, 2019 09:19
Show Gist options
  • Save Weiyuan-Lane/41d8a0d89c89ac4e45e4154564764f3d to your computer and use it in GitHub Desktop.
Save Weiyuan-Lane/41d8a0d89c89ac4e45e4154564764f3d to your computer and use it in GitHub Desktop.
Function implemented for computing cos from input radian values
@import 'sin';
@function cos($rad) {
@return sin($rad + $HALF_PI);
}
@import 'sin';
@import 'cos';
@function tan($rad) {
@return sin($rad) / cos($rad);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment