Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 698 Bytes

cheatsheet.md

File metadata and controls

35 lines (27 loc) · 698 Bytes

math

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

rule of three

 x1     ?          x1 * y2
---- = ---- -> ? = -------
 x2     y2            x2

2d math

trigonometry

                                      _-'\
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