Directed line in 3D with double values.
More...
#include <Inventor/SbLineard.h>
|
| SbLined () |
| Constructors.
|
|
| SbLined (const SbVec3d &p0, const SbVec3d &p1) |
| Constructors.
|
|
void | setValue (const SbVec3d &p0, const SbVec3d &p1) |
| Sets line to pass through points p0 and p1 .
|
|
bool | getClosestPoints (const SbLined &line2, SbVec3d &ptOnThis, SbVec3d &ptOnLine2) const |
| Finds the two closest points between this line and line2 , and loads them into ptOnThis and ptOnLine2 .
|
|
SbVec3d | getClosestPoint (const SbVec3d &point) const |
| Returns the closest point on the line to the given point.
|
|
const SbVec3d & | getPosition () const |
| Returns position of line origin point and direction vector of line.
|
|
const SbVec3d & | getDirection () const |
| Returns position of line origin point and direction vector of line.
|
|
bool | intersect (const SbBox3d &box, SbVec3d &enter, SbVec3d &exit) const |
| Intersect the line with a box, point, line, and triangle.
|
|
bool | intersect (double angle, const SbBox3d &box) const |
|
bool | intersect (double angle, const SbVec3d &point) const |
|
bool | intersect (double angle, const SbVec3d &v0, const SbVec3d &v1, SbVec3d &pt) const |
|
bool | intersect (const SbVec3d &v0, const SbVec3d &v1, const SbVec3d &v2, SbVec3d &pt, SbVec3d &barycentric, bool &front) const |
|
Represents a directed line in 3D. This is a basic Inventor datatype that is used for representing a 3D line. It is used as input and output by a variety of Inventor classes. {}
- See Also
- SbVec3f, SbPlane, SbLine, SbVec3d, SbPlaned
Definition at line 852 of file SbLineard.h.
◆ SbLined() [1/2]
To construct a line from a position and direction, use: SbLined(p0, p0 + dir)
. The line is directed from p0
to p1
.
Definition at line 856 of file SbLineard.h.
◆ SbLined() [2/2]
To construct a line from a position and direction, use: SbLined(p0, p0 + dir)
. The line is directed from p0
to p1
.
◆ getClosestPoint()
◆ getClosestPoints()
Returns FALSE
if the lines are parallel (results undefined), and returns TRUE
otherwise.
◆ getDirection()
const SbVec3d & SbLined::getDirection |
( |
| ) |
const |
|
inline |
◆ getPosition()
const SbVec3d & SbLined::getPosition |
( |
| ) |
const |
|
inline |
◆ intersect() [1/5]
◆ intersect() [2/5]
◆ intersect() [3/5]
bool SbLined::intersect |
( |
double |
angle, |
|
|
const SbBox3d & |
box |
|
) |
| const |
◆ intersect() [4/5]
bool SbLined::intersect |
( |
double |
angle, |
|
|
const SbVec3d & |
point |
|
) |
| const |
◆ intersect() [5/5]
◆ setValue()
The documentation for this class was generated from the following file:
- C:/jh/mevislab/4.0.2_1/build/MeVis/ThirdParty/Sources/Inventor/include/Inventor/SbLineard.h