Changeset 4845 in orxonox.OLD for orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.h
- Timestamp:
- Jul 12, 2005, 11:48:39 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.h
r4844 r4845 16 16 #define SEC_OFFSET 1.0 //!< the offset added to the overlapSize to ensure that there are no problems in 17 17 18 19 //! A class that represents a rectangle, this is needed for SpatialSeparation20 class Rectangle21 {22 23 public:24 Rectangle() {}25 virtual ~Rectangle() {}26 27 /** \brief sets the center of the rectangle to a defined vector @param center the new center */28 inline void setCenter(const Vector ¢er) { this->center = center;}29 /** \brief sets the center of the rectangle to a defined vector @param x coord of the center @param y coord of the center @param z coord of the center */30 inline void setCenter(float x, float y, float z) { this->center.x = x; this->center.y = y; this->center.z = z; }31 /** \brief returns the center of the rectangle to a defined vector @returns center the new center */32 inline const Vector* getCenter() const { return &this->center; }33 34 /** \brief sets both axis of the rectangle to a defined vector @param unityLength the new center */35 inline void setAxis(float unityLength) { this->axis[0] = unityLength; this->axis[1] = unityLength; }36 /** \brief sets both axis of the rectangle to a defined vector @param v1 the length of the x axis @param v2 the length of the z axis*/37 inline void setAxis(float v1, float v2) { this->axis[0] = v1; this->axis[1] = v2; }38 39 private:40 Vector center;41 float axis[2];42 };43 18 44 19 … … 61 36 private: 62 37 void separateZone(); 63 Rectangle* getDimension(AbstractModel* playerModel);64 38 65 39
Note: See TracChangeset
for help on using the changeset viewer.