7 #include "fml/logging.h"
8 #include "gtest/gtest.h"
15 TEST(TrigTest, TrigAngles) {
18 EXPECT_EQ(trig.
cos, 1.0);
19 EXPECT_EQ(trig.
sin, 0.0);
24 EXPECT_EQ(trig.
cos, 1.0);
25 EXPECT_EQ(trig.
sin, 0.0);
65 TEST(TrigTest, MultiplyByScalarRadius) {
66 for (
int i = 0; i <= 360; i++) {
67 for (
int i = 1; i <= 10; i++) {
70 Point(radius * std::cos(i *
kPi / 180),
71 radius * std::sin(i *
kPi / 180)))
72 <<
"at " << i <<
" degrees and radius " << radius;
TEST(AllocationSizeTest, CanCreateTypedAllocations)
constexpr float kEhCloseEnough
A structure to store the sine and cosine of an angle.