1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib3x-angle_between.md

18 lines
343 B
Markdown
Raw Normal View History

2021-02-12 11:28:39 +08:00
# angle_between
Returns the angle between two vectors.
**Since:** 3.0
## Parameters
- `vt1` : vector 1.
- `vt2` : vector 2.
## Examples
2022-06-06 13:11:46 +08:00
use <angle_between.scad>
2021-02-12 11:28:39 +08:00
assert(angle_between([0, 1], [1, 0]) == 90);
assert(angle_between([0, 1, 0], [1, 0, 0]) == 90);
assert(round(angle_between([1, 1, 0], [1, 1, sqrt(2)])) == 45);