HerdSoftware  0.1.1
Public Member Functions | List of all members
Herd::Rectangle Class Reference

A rectangle in 3D space. More...

#include <Rectangle.h>

Inheritance diagram for Herd::Rectangle:
Herd::Parallelogram

Public Member Functions

 Rectangle ()
 
 Rectangle (std::array< Point, 3 > points)
 
- Public Member Functions inherited from Herd::Parallelogram
 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

- Protected Attributes inherited from Herd::Parallelogram
Herd::Plane _plane
 
std::array< Vec3D, 2 > _vertices
 

Detailed Description

A rectangle in 3D space.

This class describes a rectangular region on a plane in 3D space.

Constructor & Destructor Documentation

◆ Rectangle() [1/2]

Herd::Rectangle::Rectangle ( )
inline

Constructor.

Builds an unspecified rectangle.

◆ Rectangle() [2/2]

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).

Parameters
pointsThe points defining the rectangle.
Exceptions
#Exceptionif the given points do not define a rectangle.

The documentation for this class was generated from the following files: