Line for intersection with ray or segment.
More...
#include <IntersectionLine.hh>
|
const Eigen::Vector3f | p0 |
|
const Eigen::Vector3f | dir |
|
const Eigen::Vector3f | dir_inv |
|
const std::optional< float > | start |
|
const std::optional< float > | stop |
|
Line for intersection with ray or segment.
◆ forwardRay()
IntersectionLine gramods::gmGraphics::IntersectionLine::forwardRay |
( |
Eigen::Vector3f |
p0, |
|
|
Eigen::Vector3f |
dir |
|
) |
| |
|
static |
Creates a IntersectionLine that has infinite forward extent, for intersection testing, from p0 and in direction dir.
◆ getInSpace()
IntersectionLine gramods::gmGraphics::IntersectionLine::getInSpace |
( |
const Eigen::Affine3f & |
M | ) |
const |
Get this line but transformed into another coordinates base.
◆ getPosition()
Eigen::Vector3f gramods::gmGraphics::IntersectionLine::getPosition |
( |
float |
ratio | ) |
|
|
inline |
Returns the position on the line that corresponds to the specified ratio.
◆ infiniteRay()
IntersectionLine gramods::gmGraphics::IntersectionLine::infiniteRay |
( |
Eigen::Vector3f |
p0, |
|
|
Eigen::Vector3f |
dir |
|
) |
| |
|
static |
Creates a IntersectionLine for two-way infinite ray intersection testing, from p0 and in both direction dir and -dir.
◆ lineSegment()
IntersectionLine gramods::gmGraphics::IntersectionLine::lineSegment |
( |
Eigen::Vector3f |
p0, |
|
|
Eigen::Vector3f |
p1 |
|
) |
| |
|
static |
Creates a IntersectionLine for line segment intersection testing, from p0 to p1.
The documentation for this struct was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmGraphics/include/gmGraphics/IntersectionLine.hh
- /home/karlu/private/program/gramods/modules/gmGraphics/src/IntersectionLine.cpp