---
type: snippet
tags: ['angle', 'math']
status: release
ctime: 2022-04-09
mtime: 2024-03-22
---

- [Tilted Angles in Sass - SitePoint](https://www.sitepoint.com/tilted-angles-in-sass/)
- [Inverse trigonometric functions with Sass – TheSassWay.com](http://thesassway.com/advanced/inverse-trigonometric-functions-with-sass)

```js
function getTiltedHeight(angle) {
  const a = 100;
  const A = 90 - angle;
  
  const c = a / Math.sin(Math.PI * A / 180);
  const b = Math.sqrt(Math.pow(c, 2) - Math.pow(a, 2));
  
  return `${Math.abs(b)}%`;
}
```