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