You can use implemented traits

This commit is contained in:
Stephan Rehfeld 2026-05-13 18:04:38 +02:00
parent 0a692c01de
commit 29f39a9163

View File

@ -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;
}