1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 00:36:40 +02:00
This commit is contained in:
Justin Lin
2022-05-05 10:30:07 +08:00
parent a4bb82698a
commit e714fb0bc3

View File

@@ -11,12 +11,12 @@
function m_mirror(v) =
let(
nv = v / norm(v),
txx = -2* nv.x * nv.x,
txy = -2* nv.x * nv.y,
txz = -2* nv.x * nv.z,
tyy = -2* nv.y * nv.y,
tyz = -2* nv.y * nv.z,
tzz = -2* nv.z * nv.z
txx = -2 * nv.x ^ 2,
txy = -2 * nv.x * nv.y,
txz = -2 * nv.x * nv.z,
tyy = -2 * nv.y ^ 2,
tyz = -2 * nv.y * nv.z,
tzz = -2 * nv.z ^ 2
)
[
[1 + txx, txy, txz, 0],