On Wed, Jan 27, 2010 at 10:50 AM, Jake Mannix <jake.man...@gmail.com> wrote: > > If you're calling this as distance(centroid.getLengthSquared(), centroid, > v), then > this resolves to > > centroid.getLengthSquared() + v.getDistanceSquared(centroid) > > why is this supposed to be equal to > > centroid.minus(v).getLengthSquared()? >
Like, why are we even using the centroidLengthSquared at all? Isn't this method really just doing centroid.getDistanceSquared(v)? -jake