BooleanVector4

@Serializable
data class BooleanVector4(val x: Boolean, val y: Boolean, val z: Boolean, val w: Boolean)(source)

Boolean 4D vector

Constructors

Link copied to clipboard
constructor(x: Boolean, y: Boolean, z: Boolean, w: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun toIntVector4(x: Int = if (this.x) 1 else 0, y: Int = if (this.y) 1 else 0, z: Int = if (this.z) 1 else 0, w: Int = if (this.w) 1 else 0): IntVector4

Casts to IntVector4.

Link copied to clipboard
fun toVector4(x: Double = if (this.x) 1.0 else 0.0, y: Double = if (this.y) 1.0 else 0.0, z: Double = if (this.z) 1.0 else 0.0, w: Double = if (this.x) 1.0 else 0.0): Vector4

Casts to Vector4.

Properties

Link copied to clipboard
val w: Boolean
Link copied to clipboard
val x: Boolean
Link copied to clipboard
val y: Boolean
Link copied to clipboard
val z: Boolean