mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 20:32:56 +03:00
ICC: Make struct XYZ store float instead of double
Should be good enough.
This commit is contained in:
parent
e1de31a3fe
commit
037d213fdf
Notes:
sideshowbarker
2024-07-16 23:23:26 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/037d213fdf Pull-request: https://github.com/SerenityOS/serenity/pull/18562
@ -48,7 +48,7 @@ struct XYZNumber {
|
||||
|
||||
operator XYZ() const
|
||||
{
|
||||
return XYZ { x / (double)0x1'0000, y / (double)0x1'0000, z / (double)0x1'0000 };
|
||||
return XYZ { x / (float)0x1'0000, y / (float)0x1'0000, z / (float)0x1'0000 };
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -21,9 +21,9 @@ using S15Fixed16 = FixedPoint<16, i32>;
|
||||
using U16Fixed16 = FixedPoint<16, u32>;
|
||||
|
||||
struct XYZ {
|
||||
double x { 0 };
|
||||
double y { 0 };
|
||||
double z { 0 };
|
||||
float x { 0 };
|
||||
float y { 0 };
|
||||
float z { 0 };
|
||||
|
||||
bool operator==(const XYZ&) const = default;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user