gz/math/OrientedBox.hh
Encapsulates a position and rotation in three space.
Definition: gz/math/Pose3.hh:34
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
bool SetDensityFromMass(const T _mass)
Set the density of this box based on a mass value. Density is computed using double DensityFromMass(c...
Definition: gz/math/OrientedBox.hh:251
OrientedBox(const Vector3< T > &_size)
Constructor which takes only the size.
Definition: gz/math/OrientedBox.hh:69
OrientedBox(const Vector3< T > &_size, const Material &_mat)
Constructor which takes only the size.
Definition: gz/math/OrientedBox.hh:78
Matrix4< T > Inverse() const
Return the inverse matrix. This is a non-destructive operation.
Definition: gz/math/Matrix4.hh:481
friend std::ostream & operator<<(std::ostream &_out, const OrientedBox< T > &_b)
Output operator.
Definition: gz/math/OrientedBox.hh:180
Contains information about a single material.
Definition: gz/math/Material.hh:65
OrientedBox(const OrientedBox< T > &_b)
Copy constructor.
Definition: gz/math/OrientedBox.hh:86
bool operator==(const OrientedBox< T > &_b) const
Equality test operator.
Definition: gz/math/OrientedBox.hh:161
OrientedBox(const Vector3< T > &_size, const Pose3< T > &_pose, const Material &_mat)
Constructor which takes size, pose, and material.
Definition: gz/math/OrientedBox.hh:60
T YLength() const
Get the length along the y dimension.
Definition: gz/math/OrientedBox.hh:105
OrientedBox< double > OrientedBoxd
Definition: gz/math/OrientedBox.hh:281
virtual ~OrientedBox()
Destructor.
Definition: gz/math/OrientedBox.hh:92
T ZLength() const
Get the length along the z dimension.
Definition: gz/math/OrientedBox.hh:112
void SetMaterial(const Material &_mat)
Set the material associated with this box.
Definition: gz/math/OrientedBox.hh:211
void Pose(Pose3< T > &_pose)
Set the box pose.
Definition: gz/math/OrientedBox.hh:142
STL class.
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: gz/math/Vector3.hh:41
Mathematical representation of a box which can be arbitrarily positioned and rotated.
Definition: gz/math/OrientedBox.hh:39
bool Contains(const Vector3d &_p) const
Check if a point lies inside the box.
Definition: gz/math/OrientedBox.hh:191
const Material & Material() const
Get the material associated with this box.
Definition: gz/math/OrientedBox.hh:204
const Vector3< T > & Size() const
Get the size of the box.
Definition: gz/math/OrientedBox.hh:119
T XLength() const
Get the length along the x dimension.
Definition: gz/math/OrientedBox.hh:98
const Pose3< T > & Pose() const
Get the box pose, which is the pose of its center.
Definition: gz/math/OrientedBox.hh:126
OrientedBox()
Default constructor.
Definition: gz/math/OrientedBox.hh:42
T DensityFromMass(const T _mass) const
Compute the box's density given a mass value. The box is assumed to be solid with uniform density....
Definition: gz/math/OrientedBox.hh:231
bool SetFromBox(const Material &_mat, const Vector3< T > &_size, const Quaternion< T > &_rot=Quaternion< T >::Identity)
Set inertial properties based on a Material and equivalent box.
Definition: gz/math/MassMatrix3.hh:1054
Vector3 Abs() const
Get the absolute value of the vector.
Definition: gz/math/Vector3.hh:229
OrientedBox & operator=(const OrientedBox< T > &_b)
Assignment operator. Set this box to the parameter.
Definition: gz/math/OrientedBox.hh:150
void Size(Vector3< T > &_size)
Set the box size.
Definition: gz/math/OrientedBox.hh:134
T Volume() const
Get the volume of the box in m^3.
Definition: gz/math/OrientedBox.hh:218
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: gz/math/MassMatrix3.hh:45
bool operator!=(const OrientedBox< T > &_b) const
Inequality test operator.
Definition: gz/math/OrientedBox.hh:170
void SetDensity(const double _density)
Set the density value of the material in kg/m^3.
bool MassMatrix(MassMatrix3< T > &_massMat) const
Get the mass matrix for this box. This function is only meaningful if the box's size and material hav...
Definition: gz/math/OrientedBox.hh:265
OrientedBox(const Vector3< T > &_size, const Pose3< T > &_pose)
Constructor which takes size and pose.
Definition: gz/math/OrientedBox.hh:50