A class representing a line in n-dimensional space. The class is parameterized by a PointConcept, which must provide the DIM constant and the [] operator for accessing the point coordinates.
More...
#include <vclib/space/core/line.h>
|
|
using | PointType = PointT |
| | The type of point used to represent the origin and direction of the line.
|
| |
|
using | ScalarType = PointT::ScalarType |
| | The scalar type of the line.
|
| |
|
|
static const uint | DIM = PointT::DIM |
| | The dimensionality of the line.
|
| |
|
|
PointT | mDirection |
| |
|
PointT | mOrigin |
| |
template<PointConcept PointT>
class vcl::Line< PointT >
A class representing a line in n-dimensional space. The class is parameterized by a PointConcept, which must provide the DIM constant and the [] operator for accessing the point coordinates.
- Template Parameters
-
| PointT | The type of the two endpoint points of the line. |
◆ Line()
template<PointConcept PointT>
Creates a line with the given origin and direction.
- Parameters
-
| [in] | origin | The origin of the line. |
| [in] | direction | The direction of the line. |
◆ direction() [1/2]
template<PointConcept PointT>
Returns the direction of the line.
- Returns
- A reference to the direction of the line.
◆ direction() [2/2]
template<PointConcept PointT>
Returns the direction of the line.
- Returns
- A reference to the direction of the line.
◆ normalizedDirection()
template<PointConcept PointT>
| PointT vcl::Line< PointT >::normalizedDirection |
( |
| ) |
const |
|
inline |
Returns the normalized direction of the line.
- Returns
- The normalized direction of the line.
◆ origin() [1/2]
template<PointConcept PointT>
Returns the origin of the line.
- Returns
- A reference to the origin of the line.
◆ origin() [2/2]
template<PointConcept PointT>
Returns the origin of the line.
- Returns
- A const reference to the origin of the line.
◆ pointAtParameter()
template<PointConcept PointT>
Returns the point at parameter t along the line.
- Parameters
-
| [in] | t | The parameter value. |
- Returns
- The point at parameter t along the line.
The documentation for this class was generated from the following file:
- vclib/core/include/vclib/space/core/line.h