gz/math/AxisAlignedBox.hh
AxisAlignedBox & operator=(const AxisAlignedBox &_b)
Assignment operator. Set this box to the parameter.
Definition: gz/math/AdditivelySeparableScalarField3.hh:27
bool IntersectCheck(const Vector3d &_origin, const Vector3d &_dir, const double _min, const double _max) const
Check if a ray (origin, direction) intersects the box.
std::tuple< bool, double > IntersectDist(const Vector3d &_origin, const Vector3d &_dir, const double _min, const double _max) const
Check if a ray (origin, direction) intersects the box.
bool SetDensityFromMass(const double _mass)
Set the density of this box based on a mass value. Density is computed using double DensityFromMass(c...
bool Intersects(const AxisAlignedBox &_box) const
Test box intersection. This test will only work if both box's minimum corner is less than or equal to...
std::tuple< bool, double, Vector3d > Intersect(const Vector3d &_origin, const Vector3d &_dir, const double _min, const double _max) const
Check if a ray (origin, direction) intersects the box.
double DensityFromMass(const double _mass) const
Compute the cylinder's density given a mass value. The cylinder is assumed to be solid with uniform d...
Contains information about a single material.
Definition: gz/math/Material.hh:65
AxisAlignedBox operator-(const Vector3d &_v)
Subtract a vector from the min and max values.
const Material & Material() const
Get the material associated with this box.
bool Contains(const Vector3d &_p) const
Check if a point lies inside the box.
friend std::ostream & operator<<(std::ostream &_out, const AxisAlignedBox &_b)
Output operator.
Definition: gz/math/AxisAlignedBox.hh:149
const AxisAlignedBox & operator+=(const AxisAlignedBox &_b)
Addition set operator. this = this + _b.
STL class.
bool MassMatrix(MassMatrix3d &_massMat) const
Get the mass matrix for this box. This function is only meaningful if the box's size and material hav...
The Vector3 class represents the generic vector containing 3 elements. Since it's commonly used to ke...
Definition: gz/math/Vector3.hh:41
bool operator!=(const AxisAlignedBox &_b) const
Inequality test operator.
A three dimensional line segment. The line is defined by a start and end point.
Definition: gz/math/Line3.hh:35
AxisAlignedBox operator+(const AxisAlignedBox &_b) const
Addition operator. result = this + _b.
void SetMaterial(const Material &_mat)
Set the material associated with this box.
AxisAlignedBox()
Default constructor. This constructor will set the box's minimum and maximum corners to the highest (...
Mathematical representation of a box that is aligned along an X,Y,Z axis.
Definition: gz/math/AxisAlignedBox.hh:42
bool operator==(const AxisAlignedBox &_b) const
Equality test operator.
void Merge(const AxisAlignedBox &_box)
Merge a box with this box.
A class for inertial information about a rigid body consisting of the scalar mass and a 3x3 symmetric...
Definition: gz/math/MassMatrix3.hh:45