Skip to content

Commit

Permalink
Update cheatsheet.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTelanie authored Oct 31, 2023
1 parent 32ae55d commit 0495599
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions cheatsheet.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
## math

$π = radians(180.0) = acos(0.0) * 2.0$

```
π = radians(180.0) = acos(0.0) * 2.0
```
#### rule of three

$\frac{x1}{x2} = \frac{?}{y2}$ -> $? = \frac{x1 * y2}{x2}$
```
x1 ? x1 * y2
---- = ---- -> ? = -------
x2 y2 x2
```

### 2d math


### trigonometry
```
_- \
sin(α) = a / c _- . \
cos(α) = b / c b _- \ a
tan(α) = a / b _- \
sin(β) = b / c _- α β \
_-'\
sin(α) = a / c _-' . \
cos(α) = b / c b _-' \ a
tan(α) = a / b _-' \
sin(β) = b / c _-' α β \
cos(β) = a / c ----------------------
tan(β) = b / a c
```

https://www.arndt-bruenner.de/mathe/scripts/dreiecksberechnungrw.htm

#### change length of a vector
```
normalize(vec) * newLen = vec * newLen / length(vec)
```
### 3d math

0 comments on commit 0495599

Please sign in to comment.