We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Rot2::rotation_to/from_y
1 parent b36b023 commit e13c72dCopy full SHA for e13c72d
crates/bevy_math/src/direction.rs
@@ -229,7 +229,7 @@ impl Dir2 {
229
self.rotation_from_x().inverse()
230
}
231
232
- /// Get the rotation that rotates this direction to the Y-axis.
+ /// Get the rotation that rotates the Y-axis to this direction.
233
#[inline]
234
pub fn rotation_from_y(self) -> Rot2 {
235
// `x <- y`, `y <- -x` correspond to rotating clockwise by pi/2;
@@ -238,7 +238,7 @@ impl Dir2 {
238
Rot2::from_sin_cos(-self.0.x, self.0.y)
239
240
241
- /// Get the rotation that rotates the Y-axis to this direction.
+ /// Get the rotation that rotates this direction to the Y-axis.
242
243
pub fn rotation_to_y(self) -> Rot2 {
244
self.rotation_from_y().inverse()
0 commit comments