Skip to content

Commit e13c72d

Browse files
authored
Fix swapped docs for Rot2::rotation_to/from_y (#14307)
# Objective Fixes #14301 ## Solution Swap them so that they are no longer swapped.
1 parent b36b023 commit e13c72d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_math/src/direction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl Dir2 {
229229
self.rotation_from_x().inverse()
230230
}
231231

232-
/// Get the rotation that rotates this direction to the Y-axis.
232+
/// Get the rotation that rotates the Y-axis to this direction.
233233
#[inline]
234234
pub fn rotation_from_y(self) -> Rot2 {
235235
// `x <- y`, `y <- -x` correspond to rotating clockwise by pi/2;
@@ -238,7 +238,7 @@ impl Dir2 {
238238
Rot2::from_sin_cos(-self.0.x, self.0.y)
239239
}
240240

241-
/// Get the rotation that rotates the Y-axis to this direction.
241+
/// Get the rotation that rotates this direction to the Y-axis.
242242
#[inline]
243243
pub fn rotation_to_y(self) -> Rot2 {
244244
self.rotation_from_y().inverse()

0 commit comments

Comments
 (0)