Added multiplying a tuple by a matrix

This commit is contained in:
Jon Janzen
2021-09-03 19:21:09 -06:00
parent be2d23914d
commit 48b5d0a400
2 changed files with 30 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ mod tests {
let expected_point = Tuple::point(2.0, 1.0, 7.0);
let translated_point = &transform * &p;
let translated_point = &p * &transform;
assert_eq!(expected_point, translated_point);
}