# Class: com.pnfsoftware.jeb.core.output.code.coordinates.CodeCoordinatesUtil

Utility methods for [ICodeCoordinates](ICodeCoordinates) implementing classes.

## Constructor: CodeCoordinatesUtil


## Static Method: distance
- parameter: `a`, type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`
- parameter: `b`, type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`
- return type: `int`

Description: Calculate the distance between two coordinates.
parameter: a: first coordinates
parameter: b: second coordinates
return: a positive number

## Static Method: getBaseObjectIndex
- parameter: `coords`, type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`
- return type: `java.lang.Integer`

Description: Provide the base object index of a coordinates object.
parameter: coords: 
return: an index, null if the coordinates object does not use a base object \(eg, [NativeCoordinates](NativeCoordinates)\)

## Static Method: getMethodObjectIndex
- parameter: `coords`, type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`
- return type: `java.lang.Integer`

Description: Provide the method object index of a coordinates object.
parameter: coords: 
return: an index, null if the coordinates object does not use a method object

## Static Method: getMostAccurate
- parameter: `a`, type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`
- parameter: `b`, type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`
- return type: `com.pnfsoftware.jeb.core.output.code.coordinates.ICodeCoordinates`

Description: Determine which coordinates appear to be the most "accurate".
parameter: a: first coordinates
parameter: b: second coordinates
return: whichever coordinates appear to be the most accurate; if no determination can Be         found, the first coordinates are preferred.

