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.
1 parent b3b548e commit c43e25cCopy full SHA for c43e25c
gdnative-core/src/core_types/vector2.rs
@@ -251,7 +251,7 @@ impl Vector2 {
251
#[inline]
252
pub fn rotated(self, angle: f32) -> Self {
253
let (cos, sin) = (angle.cos(), angle.sin());
254
- Self::new(cos * self.x + sin * self.y, sin * self.x + cos * self.y)
+ Self::new(cos * self.x - sin * self.y, sin * self.x + cos * self.y)
255
}
256
257
/// Returns the vector with all components rounded to the nearest integer, with halfway cases
0 commit comments