an Java api for calculating distance across a 2D plane