All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.bixilon.kotlinglm.vec4.operators.op_Vec4bool.kt Maven / Gradle / Ivy

There is a newer version: 0.9.9.1-12
Show newest version
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
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy