distanceTo method
Implementation
num distanceTo(LocationPoint p) {
return this.isValid() &&
this.location == p.location &&
this.subLocation == p.subLocation
? PointF.length(this.x - p.x, this.y - p.y)
: 0.0 / 0.0;
}