- Timestamp:
- 04/06/06 20:48:19 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/src/IMGBox2d.cpp
r721 r731 18 18 } 19 19 20 Ogre::Vector2 Box2d:: GetMinimum()20 Ogre::Vector2 Box2d::getMinimum() 21 21 { 22 22 return mMinimum; 23 23 } 24 24 25 Ogre::Vector2 Box2d:: GetMaximum()25 Ogre::Vector2 Box2d::getMaximum() 26 26 { 27 27 return mMaximum; 28 28 } 29 29 30 void Box2d:: SetBoundBox(float x, float y, float X, float Y)30 void Box2d::setBoundBox(float x, float y, float X, float Y) 31 31 { 32 32 mMinimum.x = x; … … 36 36 } 37 37 38 void Box2d:: AddBoundingVector3(float x, float y)38 void Box2d::addBoundingVector3(float x, float y) 39 39 { 40 40 if (x < mMinimum.x) … … 59 59 } 60 60 61 void Box2d:: Print()61 void Box2d::print() 62 62 { 63 63 Ogre::LogManager::getSingleton().logMessage("Valor de la Caixa: (" + Ogre::StringConverter::toString(Ogre::Vector3(mMinimum.x, mMinimum.y, 0)) + ") - (" + Ogre::StringConverter::toString(Ogre::Vector3(mMaximum.x, mMaximum.y, 0)) + ")"); 64 64 } 65 65 66 Ogre::Vector2 Box2d:: GetCorner(int corner) const66 Ogre::Vector2 Box2d::getCorner(int corner) const 67 67 { 68 68 Ogre::Vector2 vector; … … 79 79 } 80 80 81 bool Box2d:: In(int w, int h)81 bool Box2d::in(int w, int h) 82 82 { 83 83 if (w <= (mMaximum.x - mMinimum.x) && h <= (mMaximum.y - mMinimum.y)) … … 89 89 } 90 90 91 bool Box2d:: FitPerfect(int w, int h)91 bool Box2d::fitPerfect(int w, int h) 92 92 { 93 93 if (w == (mMaximum.x - mMinimum.x) && h == (mMaximum.y - mMinimum.y))
Note: See TracChangeset
for help on using the changeset viewer.