Changeset 4610 in orxonox.OLD for orxonox/trunk/src/lib/coord
- Timestamp:
- Jun 12, 2005, 11:48:07 PM (19 years ago)
- Location:
- orxonox/trunk/src/lib/coord
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4592 r4610 117 117 { 118 118 static_cast<BaseObject*>(this)->loadParams(root); 119 120 LoadParam<PNode>(root, "abs-coor", this, &PNode::setAbsCoor) 121 .describe("Sets The absolute Position of the Node."); 122 123 LoadParam<PNode>(root, "rel-coor", this, &PNode::setRelCoor) 124 .describe("Sets The relative position of the Node to its parent."); 119 125 } 120 126 … … 134 140 135 141 /** 142 \brief set relative coordinates 143 \param x x-relative coordinates to its parent 144 \param y y-relative coordinates to its parent 145 \param z z-relative coordinates to its parent 146 \see void PNode::setRelCoor (const Vector& relCoord) 147 */ 148 void PNode::setRelCoor (float x, float y, float z) 149 { 150 this->setRelCoor(Vector(x, y, z)); 151 } 152 153 /** 136 154 \param absCoord set absolute coordinate 137 155 … … 144 162 this->bAbsCoorChanged = true; 145 163 this->absCoordinate = absCoord; 164 } 165 166 /** 167 * \param x x-coordinate. 168 * \param y y-coordinate. 169 * \param z z-coordinate. 170 * \see void PNode::setAbsCoor (const Vector& absCoord) 171 */ 172 void PNode::setAbsCoor(float x, float y, float z) 173 { 174 this->setAbsCoor(Vector(x, y, z)); 146 175 } 147 176 -
orxonox/trunk/src/lib/coord/p_node.h
r4574 r4610 56 56 57 57 void setRelCoor (const Vector& relCoord); 58 void setRelCoor (float x, float y, float z); 58 59 /** \returns the relative position */ 59 60 inline const Vector& getRelCoor () const { return this->relCoordinate; }; 60 61 void setAbsCoor (const Vector& absCoord); 62 void setAbsCoor (float x, float y, float z); 61 63 /** \returns the absolute position */ 62 64 inline const Vector& getAbsCoor () const { return this->absCoordinate; };
Note: See TracChangeset
for help on using the changeset viewer.