Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 12, 2005, 11:48:39 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: added the rectangle to the vector file, since it is a geometrical body like a plane (the plane without arrows…), moved getDimension function to the QuadtreeNode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.h

    r4844 r4845  
    1616#define SEC_OFFSET 1.0                       //!< the offset added to the overlapSize to ensure that there are no problems in
    1717
    18 
    19 //! A class that represents a rectangle, this is needed for SpatialSeparation
    20 class Rectangle
    21 {
    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 &center) { 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 };
    4318
    4419
     
    6136  private:
    6237    void separateZone();
    63     Rectangle* getDimension(AbstractModel* playerModel);
    6438
    6539
Note: See TracChangeset for help on using the changeset viewer.