This commit is contained in:
Vaxry 2024-09-24 18:16:10 +01:00
parent adc2233e17
commit 6e300332bf

View file

@ -91,7 +91,7 @@ int main(int argc, char** argv, char** envp) {
Mat3x3 jeremy = Mat3x3::outputProjection({1920, 1080}, HYPRUTILS_TRANSFORM_FLIPPED_90);
Mat3x3 matrixBox = jeremy.projectBox(CBox{10, 10, 200, 200}, HYPRUTILS_TRANSFORM_NORMAL).translate({100, 100}).scale({1.25F, 1.5F}).transpose();
Mat3x3 expected = std::array<float, 9>{0, -0.46296296, 0, 0.3125, 0, 0, -169.16667, 172.96297, 1};
Mat3x3 expected = std::array<float, 9>{0, 0.46296296, 0, 0.3125, 0, 0, 19.84375, 36.055557, 1};
EXPECT(matrixBox, expected);
}