1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 04:51:26 +02:00

add polar_coordinate

This commit is contained in:
Justin Lin
2021-02-09 10:52:17 +08:00
parent d2415fbf93
commit 480eec9a8f
2 changed files with 4 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ dotSCAD 3.0 Dev
New modules/functions
- `angle_between`
- `polar_coordinate`
- `spherical_coordinate`
- `util/every`
- `util/some`

View File

@@ -0,0 +1,3 @@
use <__comm__/__angy_angz.scad>;
function polar_coordinate(point) = [norm(point), atan2(point[1], point[0])]; // r, theta