Changeset 8448 in orxonox.OLD for trunk/src/lib/math
- Timestamp:
- Jun 15, 2006, 12:48:26 PM (19 years ago)
- Location:
- trunk/src/lib/math
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/math/rect2D.cc
r8145 r8448 232 232 233 233 /** 234 * @brief sets the new Center 235 * @param x the center's X to move the Rectangle to. 236 * @param y the center's Y to move the Rectangle to. 237 * moves the Rectangle from its current center to the new Center 238 */ 239 void Rect2D::setCenter(float x, float y) 240 { 241 this->setCenter(Vector2D(x, y)); 242 } 243 244 /** 245 * @brief sets the new Center 246 * @param center the center to move the Rectangle to. 247 * moves the Rectangle from its current center to the new Center 248 */ 249 void Rect2D::setCenterX(float x) 250 { 251 #warning implement this 252 } 253 254 /** 255 * @brief sets the new Center 256 * @param center the center to move the Rectangle to. 257 * moves the Rectangle from its current center to the new Center 258 */ 259 void Rect2D::setCenterY(float y) 260 { 261 #warning implement this 262 } 263 264 /** 234 265 * @brief scales the Rectangle from topLeft out. 235 266 * @param x: the scale factor in x direction -
trunk/src/lib/math/rect2D.h
r8035 r8448 96 96 void setSize(const Vector2D& size); 97 97 void setCenter(const Vector2D& center); 98 void setCenter(float x, float y); 99 void setCenterX(float x); 100 void setCenterY(float y); 101 98 102 99 103 void scaleX(float x);
Note: See TracChangeset
for help on using the changeset viewer.