mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-19 13:01:37 +02:00
add polar_coordinate
This commit is contained in:
@@ -11,6 +11,7 @@ dotSCAD 3.0 Dev
|
||||
New modules/functions
|
||||
|
||||
- `angle_between`
|
||||
- `polar_coordinate`
|
||||
- `spherical_coordinate`
|
||||
- `util/every`
|
||||
- `util/some`
|
||||
|
3
src/polar_coordinate.scad
Normal file
3
src/polar_coordinate.scad
Normal file
@@ -0,0 +1,3 @@
|
||||
use <__comm__/__angy_angz.scad>;
|
||||
|
||||
function polar_coordinate(point) = [norm(point), atan2(point[1], point[0])]; // r, theta
|
Reference in New Issue
Block a user