// Ifdef this out because it isn't used, and it makes it hard // to maintain aab without allowing the aab to grow out of bounds. #if setbounds //----------------------------------------------------------------------- protected void SetBounds(AxisAlignedBox aabb) { aab = (AxisAlignedBox)aabb.Clone(); float sqDist = (float)Math.Max(aab.Minimum.LengthSquared, aab.Maximum.LengthSquared); boundingRadius = (float)Math.Sqrt(sqDist); }