public float distanceSquared ( Vector2f point ) { getClosestPoint ( point , closest ) ; closest . sub ( point ) ; float result = closest . lengthSquared ( ) ; return result ; }
Get the shortest distance squared from a point to this line