Beispiel #1
0
TEST(Angle, NegativeNormalize){
    Angle a = M_PI * -5.2 * Angle::rad;
    Angle b = a.normalize();
    ASSERT_EQ(b.in_range(M_PI*0.8*Angle::rad), true);
}
Beispiel #2
0
TEST(Angle, in_range){
    Angle a = M_PI*1.0 * Angle::rad;
    ASSERT_EQ(true, a.in_range(M_PI*1.0*Angle::rad));
}
Beispiel #3
0
TEST(Angle, PositiveNormalize){
    Angle a = M_PI * 5.5 * Angle::rad;
    Angle b = a.normalize();
    ASSERT_EQ(b.in_range(M_PI*1.5*Angle::rad), true);
}