refactoring

This commit is contained in:
Adam Nemecek 2019-03-21 15:51:09 -07:00 committed by Sébastien Crozet
parent e416360fc9
commit 1e04053a21

View File

@ -17,7 +17,7 @@ use alga::general::Real;
use base::dimension::{U1, U3, U4}; use base::dimension::{U1, U3, U4};
use base::storage::{CStride, RStride}; 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}; use geometry::{Point3, Rotation};
@ -1341,7 +1341,7 @@ impl<N: Real> UnitQuaternion<N> {
/// assert_relative_eq!(rot.to_homogeneous(), expected, epsilon = 1.0e-6); /// assert_relative_eq!(rot.to_homogeneous(), expected, epsilon = 1.0e-6);
/// ``` /// ```
#[inline] #[inline]
pub fn to_homogeneous(&self) -> MatrixN<N, U4> { pub fn to_homogeneous(&self) -> Matrix4<N> {
self.to_rotation_matrix().to_homogeneous() self.to_rotation_matrix().to_homogeneous()
} }