Euclidean distance to another point.
double distanceTo(Point3D other) { final dx = x - other.x; final dy = y - other.y; final dz = z - other.z; return dart_math.sqrt(dx * dx + dy * dy + dz * dz); }