com.github.tsingjyujing.geo.basic.operations.GeoDistanceMeasurable.scala Maven / Gradle / Ivy
package com.github.tsingjyujing.geo.basic.operations
/**
* Distance between type T and this
*
* @author [email protected]
* @tparam T type of the object to compare
*/
trait GeoDistanceMeasurable[T <: GeoDistanceMeasurable[T]] {
/**
* Get distance from this to point or point to this (should be same)
*
* @param point geo point
* @return
*/
def geoTo(point: T): Double
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy