8#include "gtest/gtest.h"
10#include "flutter/impeller/geometry/trig.h"
15TEST(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);
65TEST(TrigTest, MultiplyByScalarRadius) {
66 for (
int i = 0;
i <= 360;
i++) {
67 for (
int i = 1;
i <= 10;
i++) {
71 radius * std::sin(
i *
kPi / 180)))
72 <<
"at " <<
i <<
" degrees and radius " << radius;
TEST(AiksCanvasTest, EmptyCullRect)
constexpr float kEhCloseEnough
SIN Vec< N, float > sqrt(const Vec< N, float > &x)
A structure to store the sine and cosine of an angle.