multiple matrix by tuple

This commit is contained in:
Jon Janzen
2021-03-28 19:16:14 -06:00
parent 6fd1eb49b7
commit 5ca76b424a
3 changed files with 88 additions and 0 deletions

View File

@@ -55,6 +55,10 @@ impl Tuple {
self.z
}
pub fn w(&self) -> f32 {
self.w
}
pub fn is_point(&self) -> bool {
self.w == 1.0
}