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