Skip to content

Commit

Permalink
Update godot-core/src/builtin/quaternion.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon authored Sep 14, 2024
1 parent 4a31626 commit 899aa5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions godot-core/src/builtin/quaternion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,10 @@ impl Mul<Quaternion> for Quaternion {
impl Mul<Vector3> for Quaternion {
type Output = Vector3;

/// Multiplies a quaternion to a vector, which functionally rotates this
/// vector as a 3D point by this quaternion
/// Applies the quaternion's rotation to the 3D point represented by the vector.
///
/// # Panics
/// If the quaternion is not normalized
/// If the quaternion is not normalized.
fn mul(self, rhs: Vector3) -> Self::Output {
Vector3::from_glam(self.to_glam().mul_vec3(rhs.to_glam()))
}
Expand Down

0 comments on commit 899aa5d

Please sign in to comment.