distanceTo method

double distanceTo(
  1. Point3D other
)

Euclidean distance to another point.

Implementation

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