You can use implemented traits
This commit is contained in:
1 parent
0a692c01de
commit
29f39a9163
1 file changed
+4
-1
+4
-1
@@ -1,5 +1,8 @@
|
||||
use hello::math::Point3;
|
||||
|
||||
fn main() {
|
||||
let p = Point3::new(0.0, 0.0, 0.0);
|
||||
let p1 = Point3::new(0.0, 0.0, 0.0);
|
||||
let p2 = Point3::new(0.0, 0.0, 0.0);
|
||||
|
||||
let v = p1 - p2;
|
||||
}
|
||||
Reference in new issue
Block a user