public double percentOverlap ( Location other ) { if ( length ( ) > 0 && overlaps ( other ) ) { return 100.0 * ( ( ( double ) intersection ( other ) . length ( ) ) / ( double ) length ( ) ) ; } else { return 0 ; } }
Return percent overlap of two locations .