Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnemecek authored and sebcrozet committed Mar 31, 2019
1 parent e416360 commit 1e04053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geometry/quaternion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use alga::general::Real;

use base::dimension::{U1, U3, U4};
use base::storage::{CStride, RStride};
use base::{Matrix3, MatrixN, MatrixSlice, MatrixSliceMut, Unit, Vector3, Vector4};
use base::{Matrix3, Matrix4, MatrixSlice, MatrixSliceMut, Unit, Vector3, Vector4};

use geometry::{Point3, Rotation};

Expand Down Expand Up @@ -1341,7 +1341,7 @@ impl<N: Real> UnitQuaternion<N> {
/// assert_relative_eq!(rot.to_homogeneous(), expected, epsilon = 1.0e-6);
/// ```
#[inline]
pub fn to_homogeneous(&self) -> MatrixN<N, U4> {
pub fn to_homogeneous(&self) -> Matrix4<N> {
self.to_rotation_matrix().to_homogeneous()
}

Expand Down

0 comments on commit 1e04053

Please sign in to comment.