Go to the documentation of this file.
20 #include <ignition/math/Plane.hh>
21 #include <ignition/math/Vector3.hh>
22 #include <ignition/math/Vector2.hh>
25 #include <sdf/sdf_config.h>
30 inline namespace SDF_VERSION_NAMESPACE {
76 public: ignition::math::Vector3d
Normal()
const;
82 public:
void SetNormal(
const ignition::math::Vector3d &_normal);
86 public: ignition::math::Vector2d
Size()
const;
90 public:
void SetSize(
const ignition::math::Vector2d &_size);
100 public:
const ignition::math::Planed &
Shape()
const;
104 public: ignition::math::Planed &
Shape();
107 private: PlanePrivate *dataPtr;
ignition::math::Vector3d Normal() const
Get the plane normal vector.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
void SetSize(const ignition::math::Vector2d &_size)
Set the plane size in meters.
Plane represents a plane shape, and is usually accessed through a Geometry.
Definition: Plane.hh:39
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
Plane & operator=(Plane &&_plane)
Move assignment operator.
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
const ignition::math::Planed & Shape() const
Get the Ignition Math representation of this Plane.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
void SetNormal(const ignition::math::Vector3d &_normal)
Set the plane normal vector.
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
ignition::math::Planed & Shape()
Get a mutable Ignition Math representation of this Plane.
Errors Load(ElementPtr _sdf)
Load the plane geometry based on a element pointer.
Plane(const Plane &_plane)
Copy constructor.
Plane & operator=(const Plane &_plane)
Assignment operator.
virtual ~Plane()
Destructor.
ignition::math::Vector2d Size() const
Get the plane size in meters.
Plane(Plane &&_plane) noexcept
Move constructor.