HerdSoftware
0.1.1
|
A rectangle in 3D space. More...
#include <Rectangle.h>
Public Member Functions | |
Rectangle () | |
Rectangle (std::array< Point, 3 > points) | |
![]() | |
Parallelogram () | |
virtual | ~Parallelogram ()=default |
Destructor. More... | |
Parallelogram (std::array< Point, 3 > points) | |
Herd::Plane | Plane () const |
Gets the plane on which the parallelogram lies. More... | |
std::array< Point, 4 > | Vertices () const |
Gets the vertices of the parallelogram. More... | |
Point | Intersection (const Line &line) const |
Computes the intersection point of the given line with the parallelogram. More... | |
Additional Inherited Members | |
![]() | |
Herd::Plane | _plane |
std::array< Vec3D, 2 > | _vertices |
A rectangle in 3D space.
This class describes a rectangular region on a plane in 3D space.
|
inline |
Constructor.
Builds an unspecified rectangle.
Herd::Rectangle::Rectangle | ( | std::array< Point, 3 > | points | ) |
Constructor.
Builds the rectangular region whose three vertices are given by the three points passed as argument (the fourth is automatically deduced).
points | The points defining the rectangle. |
#Exception | if the given points do not define a rectangle. |