Open Inventor Reference
|
Directed line in 3D with double values. More...
#include <Inventor/SbLineard.h>
Public Member Functions | |
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. {}
Definition at line 852 of file SbLineard.h.
|
inline |
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.
Referenced by getClosestPoints().
To construct a line from a position and direction, use: SbLined(p0, p0 + dir)
. The line is directed from p0
to p1
.
bool SbLined::getClosestPoints | ( | const SbLined & | line2, |
SbVec3d & | ptOnThis, | ||
SbVec3d & | ptOnLine2 ) const |
Returns FALSE
if the lines are parallel (results undefined), and returns TRUE
otherwise.
References SbLined().
|
inline |
Definition at line 879 of file SbLineard.h.
|
inline |
Definition at line 877 of file SbLineard.h.
bool SbLined::intersect | ( | const SbVec3d & | v0, |
const SbVec3d & | v1, | ||
const SbVec3d & | v2, | ||
SbVec3d & | pt, | ||
SbVec3d & | barycentric, | ||
bool & | front ) const |
bool SbLined::intersect | ( | double | angle, |
const SbBox3d & | box ) const |
bool SbLined::intersect | ( | double | angle, |
const SbVec3d & | point ) const |
bool SbLined::intersect | ( | double | angle, |
const SbVec3d & | v0, | ||
const SbVec3d & | v1, | ||
SbVec3d & | pt ) const |