1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 16:54:23 +02:00

add simple doc

This commit is contained in:
Justin Lin
2020-02-09 17:55:19 +08:00
parent 4d7acb3734
commit cc47f81dc1

View File

@@ -1,6 +1,12 @@
use <rotate_p.scad>;
function pt_to_sphere(p, size, r, angle = [180, 360]) =
/*
size: The size of the rectangle mapping to a sphere.
p: A point in the rectangle.
r: sphere radius.
angle: [za, xa] mapping angles.
*/
function pt_to_sphere(size, p, r, angle = [180, 360]) =
let(
x = p[0],
y = p[1],