mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-18 04:21:16 +02:00
avoid func name conflicting
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
function _to_vect(s) =
|
||||
function _to_svect(s) =
|
||||
len(s) == 3 ? s : (
|
||||
len(s) == 2 ? [s[0], s[1], 1] : (
|
||||
len(s) == 1 ? [s[0], 1, 1] : [s, s, s]
|
||||
@@ -16,7 +16,7 @@ function _to_vect(s) =
|
||||
);
|
||||
|
||||
function m_scaling(s) =
|
||||
let(v = _to_vect(s))
|
||||
let(v = _to_svect(s))
|
||||
[
|
||||
[v[0], 0, 0, 0],
|
||||
[0, v[1], 0, 0],
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*
|
||||
**/
|
||||
|
||||
function _to_vect(v) =
|
||||
function _to_tvect(v) =
|
||||
len(v) == 3 ? v : (
|
||||
len(v) == 2 ? [v[0], v[1], 0] : (
|
||||
len(v) == 1 ? [v[0], 0, 0] : [v, 0, 0]
|
||||
@@ -16,7 +16,7 @@ function _to_vect(v) =
|
||||
);
|
||||
|
||||
function m_translation(v) =
|
||||
let(vt = _to_vect(v))
|
||||
let(vt = _to_tvect(v))
|
||||
[
|
||||
[1, 0, 0, vt[0]],
|
||||
[0, 1, 0, vt[1]],
|
||||
|
Reference in New Issue
Block a user