public float GetSquaredViewDepth( Camera camera ) { Vector3 diff = center - camera.DerivedPosition; return diff.LengthSquared; }