party refactors in the house tonight

This commit is contained in:
2023-08-19 05:46:29 +10:00
parent 81064b497f
commit a6d6277070
5 changed files with 72 additions and 70 deletions

View File

@ -5,8 +5,10 @@ import com.badlogic.gdx.graphics.g3d.Attribute
import com.badlogic.gdx.graphics.g3d.Attributes
import com.badlogic.gdx.math.MathUtils
import com.badlogic.gdx.math.Vector2
import com.badlogic.gdx.math.Vector3
import ktx.math.div
import ktx.math.times
import ktx.math.unaryMinus
import org.hsluv.HUSLColorConverter
import kotlin.math.pow
@ -43,6 +45,12 @@ class Util
((abgr8888 and 0xFF00u) shr 8).toFloat() / 255.0f,
((abgr8888 and 0xFF0000u) shr 16).toFloat() / 255.0f,
((abgr8888 and 0xFF000000u) shr 24).toFloat() / 255.0f)
val zero get() = Vector3.Zero
val one get() = Vector3(1.0f, 1.0f, 1.0f)
val forward get() = -Vector3.Z
val right get() = Vector3.X
val up get() = Vector3.Y
}
}