15 #include <argos3/core/utility/math/vector3.h>
16 #include <argos3/core/utility/math/quaternion.h>
27 m_cBasePos(c_base_pos),
28 m_cOrientation(c_orient) {
38 m_cXBounds.
Set(-m_cSize.
GetX() * 0.5, m_cSize.
GetX() * 0.5);
39 m_cYBounds.
Set(-m_cSize.
GetY() * 0.5, m_cSize.
GetY() * 0.5);
40 m_cZBounds.
Set(0.0, m_cSize.
GetZ());
48 m_cBasePos = c_base_pos;
52 return m_cOrientation;
56 m_cOrientation = c_orient;
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
bool Intersects(Real &f_t_on_ray, const CRay3 &c_ray)
const CVector3 & GetBasePosition() const
void SetOrientation(const CQuaternion &c_orient)
CBox(const CVector3 &c_size, const CVector3 &c_base_pos=CVector3(), const CQuaternion &c_orient=CQuaternion())
const CVector3 & GetSize() const
const CQuaternion & GetOrientation() const
void SetSize(const CVector3 &c_size)
void SetBasePosition(const CVector3 &c_base_pos)
void Set(const T &t_min, const T &t_max)
Real GetX() const
Returns the x coordinate of this vector.
Real GetY() const
Returns the y coordinate of this vector.
Real GetZ() const
Returns the z coordinate of this vector.