commonMain.dev.folomeev.kotgl.matrix.vectors.mutables.MutableVec4.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotgl-matrix Show documentation
Show all versions of kotgl-matrix Show documentation
Multiplatform vectors and matrices library for WebGL and OpenGL.
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