RymlConverters for various pieces of math + tests

This commit is contained in:
Vladyslav Baranovskyi
2024-11-04 17:03:46 +02:00
parent 583cbaccff
commit b81a3088c5
3 changed files with 410 additions and 3 deletions

View File

@@ -80,9 +80,9 @@ namespace OpenVulkano::Math
{
}
uint8_t GetR() { return Unmake5(r); }
uint8_t GetG() { return Unmake6(g); }
uint8_t GetB() { return Unmake5(b); }
uint8_t GetR() const { return Unmake5(r); }
uint8_t GetG() const { return Unmake6(g); }
uint8_t GetB() const { return Unmake5(b); }
template<typename T, std::enable_if_t<std::is_integral_v<T>, bool> = true>
Math::Vector3<T> Get3()