multiple matrix by tuple
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user