improvements to point, color

This commit is contained in:
Brandon Thomas
2021-01-14 00:34:56 -05:00
parent 03b167d377
commit 201c0953ed
3 changed files with 10 additions and 4 deletions
+6
View File
@@ -67,4 +67,10 @@ impl Point {
pub fn location_string(&self) -> String {
format!("{}, {}, {}", self.x, self.y, self.z)
}
pub fn debug_string(&self) -> String {
format!("(location: {}, {}, {}); (color: {}, {}, {}, alpha: {})",
self.x, self.y, self.z,
self.r, self.g, self.b, self.a)
}
}