Changeset 2787 for code/trunk/src/orxonox/objects/worldentities
- Timestamp:
- Mar 15, 2009, 3:24:37 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/WorldEntity.cc
r2662 r2787 488 488 489 489 // Note: These functions are placed in WorldEntity.h as inline functions for the release build. 490 #ifndef _NDEBUG490 #ifndef NDEBUG 491 491 const Vector3& WorldEntity::getPosition() const 492 492 { -
code/trunk/src/orxonox/objects/worldentities/WorldEntity.h
r2662 r2787 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #ifdef _NDEBUG35 #ifdef NDEBUG 36 36 #include <OgreSceneNode.h> 37 37 #else … … 419 419 420 420 // Inline heavily used functions for release builds. In debug, we better avoid including OgreSceneNode here. 421 #ifdef _NDEBUG421 #ifdef NDEBUG 422 422 inline const Vector3& WorldEntity::getPosition() const 423 423 { return this->node_->getPosition(); } 424 424 inline const Quaternion& WorldEntity::getOrientation() const 425 { return this->node_->get rOrientation(); }425 { return this->node_->getOrientation(); } 426 426 inline const Vector3& WorldEntity::getScale3D(void) const 427 427 { return this->node_->getScale(); }
Note: See TracChangeset
for help on using the changeset viewer.