You can use implemented traits
This commit is contained in:
parent
0a692c01de
commit
29f39a9163
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user