de.bixilon.kotlinglm.vec4.operators.op_Vec4bool.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-glm Show documentation
Show all versions of kotlin-glm Show documentation
Kotlin port of OpenGL Mathematics (GLM)
package de.bixilon.kotlinglm.vec4.operators
import de.bixilon.kotlinglm.vec4.Vec4bool
interface op_Vec4bool {
fun and(res: Vec4bool, a: Vec4bool, bX: Boolean, bY: Boolean, bZ: Boolean, bW: Boolean): Vec4bool {
res.x = a.x and bX
res.y = a.y and bY
res.z = a.z and bZ
res.w = a.w and bW
return res
}
fun or(res: Vec4bool, a: Vec4bool, bX: Boolean, bY: Boolean, bZ: Boolean, bW: Boolean): Vec4bool {
res.x = a.x or bX
res.y = a.y or bY
res.z = a.z or bZ
res.w = a.w or bW
return res
}
fun xor(res: Vec4bool, a: Vec4bool, bX: Boolean, bY: Boolean, bZ: Boolean, bW: Boolean): Vec4bool {
res.x = a.x xor bX
res.y = a.y xor bY
res.z = a.z xor bZ
res.w = a.w xor bW
return res
}
}