1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-18 05:01:22 +02:00

Update maths.scad

This commit is contained in:
Alex Verschoot
2025-03-02 23:01:20 +01:00
committed by GitHub
parent dc683ed701
commit 6467de5fac

View File

@@ -197,11 +197,6 @@ function path_length(path, i = 0, length = 0) = //! Calculated the length along
v[0] * sin(angle) + v[1] * cos(angle)
];
function rotate_vector_2d(v, angle) = [
v[0] * cos(angle) - v[1] * sin(angle),
v[0] * sin(angle) + v[1] * cos(angle)
];
function rotation_matrix(axis, angle) = let(
u = axis / norm(axis), // Normalize axis
ux = u[0], uy = u[1], uz = u[2],