Kotlin utilities for Quilt mod development
//kettle/coffee.cypher.kettle.math/copy
[jvm]
fun Vec3d.copy(x: Double = this.x, y: Double = this.y, z: Double = this.z): Vec3d
Creates a new Vec3d with the given x, y, z components, using this vector’s components if not given.
[jvm]
fun Vec3i.copy(x: Int = this.x, y: Int = this.y, z: Int = this.z): Vec3i
Creates a new Vec3i with the given x, y, z components, using this vector’s components if not given.