mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-08 15:56:42 +02:00
refactor
This commit is contained in:
@@ -3,5 +3,8 @@ function stereographic_proj_to_plane(point) =
|
||||
[point.x / n, point.y / n];
|
||||
|
||||
function stereographic_proj_to_sphere(point) =
|
||||
let(n = 1 + point.x ^ 2 + point.y ^ 2)
|
||||
[2 * point.x / n, 2 * point.y / n, (-1 + point.x ^ 2 + point.y ^ 2) / n];
|
||||
let(
|
||||
pp = point * point,
|
||||
n = 1 + pp
|
||||
)
|
||||
[2 * point.x / n, 2 * point.y / n, (-1 + pp) / n];
|
Reference in New Issue
Block a user