5 #include "gtest/gtest.h"
14 TEST(RSTransformTest, Construction) {
22 EXPECT_EQ(
transform.GetBounds(20.0f, 30.0f),
32 TEST(RSTransformTest, CompareToMatrix) {
33 for (
int tx = 0; tx <= 100; tx += 10) {
34 for (
int ty = 0; ty <= 100; ty += 10) {
36 for (
int scale = 1; scale <= 20; scale += 5) {
38 for (
int degrees = 0; degrees <= 390; degrees += 45) {
44 for (
int w = 10; w <= 100; w += 10) {
45 for (
int h = 10; h <= 100; h += 10) {
46 Quad q = rst.GetQuad(w, h);
48 for (
int i = 0; i < 4; i++) {
#define EXPECT_MATRIX_NEAR(a, b)
TEST(AllocationSizeTest, CanCreateTypedAllocations)
constexpr float kEhCloseEnough
std::array< Point, 4 > Quad
static constexpr Matrix MakeTranslation(const Vector3 &t)
static Matrix MakeRotationZ(Radians r)
static constexpr Matrix MakeScale(const Vector3 &s)
constexpr static TRect MakeWH(Type width, Type height)
constexpr std::array< TPoint< T >, 4 > GetTransformedPoints(const Matrix &transform) const
constexpr static TRect MakeLTRB(Type left, Type top, Type right, Type bottom)
std::vector< Point > points