ge211
2021.5.1
A student game engine
|
|
1 #include "ge211_geometry.hxx"
10 : rotation_{0}, scale_x_{1.0}, scale_y_{1.0},
11 flip_h_{
false}, flip_v_{
false}
46 while (rotation < 0) rotation += 360;
47 rotation_ = std::fmod(rotation, 360);
136 return get_rotation() == other.get_rotation() &&
137 get_flip_h() == other.get_flip_h() &&
138 get_flip_v() == other.get_flip_v() &&
139 get_scale_x() == other.get_scale_x() &&
140 get_scale_y() == other.get_scale_y();
145 return !(*
this == other);
The game engine namespace.