mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-13 02:04:16 +02:00
refactor
This commit is contained in:
@@ -11,12 +11,12 @@
|
|||||||
function m_mirror(v) =
|
function m_mirror(v) =
|
||||||
let(
|
let(
|
||||||
nv = v / norm(v),
|
nv = v / norm(v),
|
||||||
txx = -2* nv.x * nv.x,
|
txx = -2 * nv.x ^ 2,
|
||||||
txy = -2* nv.x * nv.y,
|
txy = -2 * nv.x * nv.y,
|
||||||
txz = -2* nv.x * nv.z,
|
txz = -2 * nv.x * nv.z,
|
||||||
tyy = -2* nv.y * nv.y,
|
tyy = -2 * nv.y ^ 2,
|
||||||
tyz = -2* nv.y * nv.z,
|
tyz = -2 * nv.y * nv.z,
|
||||||
tzz = -2* nv.z * nv.z
|
tzz = -2 * nv.z ^ 2
|
||||||
)
|
)
|
||||||
[
|
[
|
||||||
[1 + txx, txy, txz, 0],
|
[1 + txx, txy, txz, 0],
|
||||||
|
Reference in New Issue
Block a user