Parametric 3D line segment represented by a start point, end point, and direction. More...
#include <mxvk/include/mxvk/mxvk_math.h>
Public Member Functions | |
| vec3D | ComputePoint (float t) const |
| Compute the point p0 + v * t. | |
| vec3D | ComputePoint (float t) const |
| Compute the point p0 + v * t. | |
| vec3D | ComputePoint (float t, vec3D &out) const |
Compute the point p0 + v * t and write it to out. | |
| vec3D | ComputePoint (float t, vec3D &out) const |
Compute the point p0 + v * t and write it to out. | |
| void | Init (const vec3D &start, const vec3D &end) |
| Initialize from endpoints and derive the direction vector. | |
| void | Init (const vec3D &start, const vec3D &end) |
| Initialize from endpoints and derive the direction vector. | |
| paramLine3D ()=default | |
| Construct an uninitialized line segment. | |
| paramLine3D ()=default | |
| Construct an uninitialized line segment. | |
| paramLine3D (const vec3D &start, const vec3D &end, const vec3D &dir) | |
| Construct from explicit endpoints and direction. | |
| paramLine3D (const vec3D &start, const vec3D &end, const vec3D &dir) | |
| Construct from explicit endpoints and direction. | |
| void | Set (const vec3D &start, const vec3D &end, const vec3D &dir) |
| Set explicit endpoints and direction. | |
| void | Set (const vec3D &start, const vec3D &end, const vec3D &dir) |
| Set explicit endpoints and direction. | |
Public Attributes | |
| vec3D | p0 |
| Segment start point. | |
| vec3D | p1 |
| Segment end point. | |
| vec3D | v |
| Direction vector, commonly p1 - p0. | |
Parametric 3D line segment represented by a start point, end point, and direction.
Definition at line 1068 of file mxvk_math.h.
|
default |
Construct an uninitialized line segment.
Construct from explicit endpoints and direction.
Definition at line 1082 of file mxvk_math.h.
|
default |
Construct an uninitialized line segment.
Construct from explicit endpoints and direction.
Definition at line 1082 of file mxvk_math_eigen.hpp.
|
inlinenodiscard |
|
inlinenodiscard |
Compute the point p0 + v * t.
Definition at line 1101 of file mxvk_math_eigen.hpp.
Compute the point p0 + v * t and write it to out.
Definition at line 1106 of file mxvk_math.h.
Compute the point p0 + v * t and write it to out.
Definition at line 1106 of file mxvk_math_eigen.hpp.
Initialize from endpoints and derive the direction vector.
Definition at line 1094 of file mxvk_math.h.
Initialize from endpoints and derive the direction vector.
Definition at line 1094 of file mxvk_math_eigen.hpp.
Set explicit endpoints and direction.
Definition at line 1087 of file mxvk_math.h.
Set explicit endpoints and direction.
Definition at line 1087 of file mxvk_math_eigen.hpp.
| vec3D mxvk::paramLine3D::p0 |
Segment start point.
Definition at line 1070 of file mxvk_math.h.
| vec3D mxvk::paramLine3D::p1 |
Segment end point.
Definition at line 1073 of file mxvk_math.h.
| vec3D mxvk::paramLine3D::v |
Direction vector, commonly p1 - p0.
Definition at line 1076 of file mxvk_math.h.