00001 // Magic Software, Inc. 00002 // http://www.magic-software.com 00003 // Copyright (c) 2000, All Rights Reserved 00004 // 00005 // Source code from Magic Software is supplied under the terms of a license 00006 // agreement and may not be copied or disclosed except in accordance with the 00007 // terms of that agreement. The various license agreements may be found at 00008 // the Magic Software web site. This file is subject to the license 00009 // 00010 // FREE SOURCE CODE 00011 // http://www.magic-software.com/License.html/free.pdf 00012 00013 //---------------------------------------------------------------------------- 00014 inline MgcBox3::MgcBox3 () 00015 { 00016 // no initialization for efficiency 00017 } 00018 //---------------------------------------------------------------------------- 00019 inline MgcVector3& MgcBox3::Center () 00020 { 00021 return m_kCenter; 00022 } 00023 //---------------------------------------------------------------------------- 00024 inline const MgcVector3& MgcBox3::Center () const 00025 { 00026 return m_kCenter; 00027 } 00028 //---------------------------------------------------------------------------- 00029 inline MgcVector3& MgcBox3::Axis (int i) 00030 { 00031 assert( 0 <= i && i < 3 ); 00032 return m_akAxis[i]; 00033 } 00034 //---------------------------------------------------------------------------- 00035 inline const MgcVector3& MgcBox3::Axis (int i) const 00036 { 00037 assert( 0 <= i && i < 3 ); 00038 return m_akAxis[i]; 00039 } 00040 //---------------------------------------------------------------------------- 00041 inline MgcVector3* MgcBox3::Axes () 00042 { 00043 return m_akAxis; 00044 } 00045 //---------------------------------------------------------------------------- 00046 inline const MgcVector3* MgcBox3::Axes () const 00047 { 00048 return m_akAxis; 00049 } 00050 //---------------------------------------------------------------------------- 00051 inline MgcReal& MgcBox3::Extent (int i) 00052 { 00053 assert( 0 <= i && i < 3 ); 00054 return m_afExtent[i]; 00055 } 00056 //---------------------------------------------------------------------------- 00057 inline const MgcReal& MgcBox3::Extent (int i) const 00058 { 00059 assert( 0 <= i && i < 3 ); 00060 return m_afExtent[i]; 00061 } 00062 //---------------------------------------------------------------------------- 00063 inline MgcReal* MgcBox3::Extents () 00064 { 00065 return m_afExtent; 00066 } 00067 //---------------------------------------------------------------------------- 00068 inline const MgcReal* MgcBox3::Extents () const 00069 { 00070 return m_afExtent; 00071 } 00072 //----------------------------------------------------------------------------