Fix the documentation for `na::inv_translate`.

This commit is contained in:
Sébastien Crozet 2014-01-19 16:22:58 +01:00
parent 5463da79ae
commit 9dd8bb4ea2
1 changed files with 2 additions and 2 deletions

View File

@ -189,9 +189,9 @@ pub fn translate<V, M: Translate<V>>(m: &M, v: &V) -> V {
/// let t = Iso3::new(Vec3::new(1.0, 1.0, 1.0), na::zero());
/// let v = Vec3::new(2.0, 2.0, 2.0);
///
/// let tv = na::translate(&t, &v);
/// let tv = na::inv_translate(&t, &v);
///
/// assert!(tv == Vec3::new(3.0, 3.0, 3.0))
/// assert!(na::approx_eq(&tv, &Vec3::new(1.0, 1.0, 1.0)))
/// }
#[inline(always)]
pub fn inv_translate<V, M: Translate<V>>(m: &M, v: &V) -> V {