You can use implemented traits
This commit is contained in:
+4
-1
@@ -1,5 +1,8 @@
|
|||||||
use hello::math::Point3;
|
use hello::math::Point3;
|
||||||
|
|
||||||
fn main() {
|
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