kettle

Kotlin utilities for Quilt mod development


Project maintained by Cypher121 Hosted on GitHub Pages — Theme by mattgraham

//kettle/coffee.cypher.kettle.math/copy

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.