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:
@@ -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],
|
||||
|
Reference in New Issue
Block a user