From 9dd8bb4ea2397fb4d86f1ed75a49e63aee0720f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 19 Jan 2014 16:22:58 +0100 Subject: [PATCH] Fix the documentation for `na::inv_translate`. --- src/na.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/na.rs b/src/na.rs index 567f17d5..5c5f035b 100644 --- a/src/na.rs +++ b/src/na.rs @@ -189,9 +189,9 @@ pub fn translate>(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>(m: &M, v: &V) -> V {