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