Update StructureBuilder.kt (#62)

Am i just terrible wrong with the math behind these or should this be x instead of z?
This commit is contained in:
Paul Kindler
2024-02-03 15:24:56 +01:00
committed by GitHub
parent 7f9ee6243f
commit 441b94ca7c

View File

@@ -15,7 +15,7 @@ fun Structure.buildAt(loc: Location) {
}
/** @see Structure.rotate */
fun Structure.rotateAroundX(angle: Number) = rotate(angle) { it, rad -> it.rotateAroundZ(rad) }
fun Structure.rotateAroundX(angle: Number) = rotate(angle) { it, rad -> it.rotateAroundX(rad) }
/** @see Structure.rotate */
fun Structure.rotateAroundY(angle: Number) = rotate(angle) { it, rad -> it.rotateAroundY(rad) }