
CSS, the language that helps websites become so cumbersome (Joke! Kinda!), is learning some new tricks. Soon, web developers will be able to use it to perform simple math functions. Simple may be an overstatement, as the mathematical functions CSS will gain include trigonometry. The trigonometry functions were approved in a late February meeting of the World Wide Web Consortium (W3C) CSS Working Group. Here they are:
- Tangent -
tan()
- Sine -
sin()
- Cosine -
cos()
- Arcsine -
asin()
- Arccosine -
acos()
- Square Root -
sqrt()
- Power of -
pow()
- Arctangent -
atan()
- Square Root (sum of squares of its argument) -
hypot()
- Arctangent (of an ‘x’ and ‘y’ number) -
atan2()