s/translate/translation/g to match book.

This commit is contained in:
2021-07-16 21:49:49 -07:00
parent 87bf924094
commit 6e73bab37f
4 changed files with 8 additions and 8 deletions

View File

@@ -50,7 +50,7 @@ impl Ray {
///
/// // Translating a ray
/// let r = Ray::new(Tuple::point(1., 2., 3.), Tuple::vector(0., 1., 0.));
/// let m = Matrix4x4::translate(3., 4., 5.);
/// let m = Matrix4x4::translation(3., 4., 5.);
/// let r2 = r.transform(m);
/// assert_eq!(r2.origin, Tuple::point(4., 6., 8.));
/// assert_eq!(r2.direction, Tuple::vector(0., 1., 0.));