//----------------------------------------------------------------// float USBox::GetRadius () const { USVec3D spans = mMax; spans.Sub ( mMin ); spans.Scale ( 0.5f ); return spans.Length (); }
//----------------------------------------------------------------// void USPrism::GetCenter ( USVec3D& center ) const { center = this->mXAxis; center.Add ( this->mYAxis ); center.Add ( this->mZAxis ); center.Scale ( 0.5f ); center.Add ( this->mLoc ); }