mirror of
https://github.com/storytold/point-generator.git
synced 2026-10-17 00:13:00 +00:00
improvements to point, color
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user