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

commonMain.dev.folomeev.kotgl.matrix.vectors.mutables.MutableVec4.kt Maven / Gradle / Ivy

The newest version!
@file:kotlin.jvm.JvmName("MutableVec4")

package dev.folomeev.kotgl.matrix.vectors.mutables

import dev.folomeev.kotgl.matrix.vectors.Vec4

/** A basic class for a mutable [Vec4]. */
abstract class MutableVec4 : Vec4(), MutableVec {
    /** Mutable x-component of the vector. */
    abstract override var x: Float

    /** Mutable y-component of the vector. */
    abstract override var y: Float

    /** Mutable z-component of the vector. */
    abstract override var z: Float

    /** Mutable w-component of the vector. */
    abstract override var w: Float

    /** Plain implementation of [MutableVec3]. */
    internal class Implementation(
        override var x: Float,
        override var y: Float,
        override var z: Float,
        override var w: Float
    ) : MutableVec4() {
        override fun copyOf() = mutableVec4(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy