mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
fix
This commit is contained in:
@@ -118,7 +118,7 @@ namespace omath
|
|||||||
{
|
{
|
||||||
Clamp(0.f, 1.f);
|
Clamp(0.f, 1.f);
|
||||||
}
|
}
|
||||||
consteval void SetHue(const float hue)
|
constexpr void SetHue(const float hue)
|
||||||
{
|
{
|
||||||
auto hsv = ToHSV();
|
auto hsv = ToHSV();
|
||||||
hsv.hue = hue;
|
hsv.hue = hue;
|
||||||
@@ -126,7 +126,7 @@ namespace omath
|
|||||||
*this = FromHSV(hsv);
|
*this = FromHSV(hsv);
|
||||||
}
|
}
|
||||||
|
|
||||||
consteval void SetSaturation(const float saturation)
|
constexpr void SetSaturation(const float saturation)
|
||||||
{
|
{
|
||||||
auto hsv = ToHSV();
|
auto hsv = ToHSV();
|
||||||
hsv.saturation = saturation;
|
hsv.saturation = saturation;
|
||||||
@@ -134,7 +134,7 @@ namespace omath
|
|||||||
*this = FromHSV(hsv);
|
*this = FromHSV(hsv);
|
||||||
}
|
}
|
||||||
|
|
||||||
consteval void SetValue(const float value)
|
constexpr void SetValue(const float value)
|
||||||
{
|
{
|
||||||
auto hsv = ToHSV();
|
auto hsv = ToHSV();
|
||||||
hsv.value = value;
|
hsv.value = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user