12 lines
240 B
Plaintext
12 lines
240 B
Plaintext
![]() |
[source,javascript]
|
||
|
----
|
||
|
// Each function does a part of what the original setCoordinates function was doing, so confusion risks are lower
|
||
|
function setOrigin(x, y, z) {
|
||
|
// ...
|
||
|
}
|
||
|
|
||
|
function setSize(width, height, depth) {
|
||
|
// ...
|
||
|
}
|
||
|
----
|