Open Inventor Reference
SbLined Class 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 SbVec3dgetPosition () const
 Returns position of line origin point and direction vector of line.
 
const SbVec3dgetDirection () 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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SbLined() [1/2]

SbLined::SbLined ( )
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.

◆ SbLined() [2/2]

SbLined::SbLined ( const SbVec3d p0,
const SbVec3d p1 
)

To construct a line from a position and direction, use: SbLined(p0, p0 + dir). The line is directed from p0 to p1.

Member Function Documentation

◆ getClosestPoint()

SbVec3d SbLined::getClosestPoint ( const SbVec3d point) const

◆ getClosestPoints()

bool SbLined::getClosestPoints ( const SbLined line2,
SbVec3d ptOnThis,
SbVec3d ptOnLine2 
) const

Returns FALSE if the lines are parallel (results undefined), and returns TRUE otherwise.

◆ getDirection()

const SbVec3d & SbLined::getDirection ( ) const
inline

Definition at line 879 of file SbLineard.h.

◆ getPosition()

const SbVec3d & SbLined::getPosition ( ) const
inline

Definition at line 877 of file SbLineard.h.

◆ intersect() [1/5]

bool SbLined::intersect ( const SbBox3d box,
SbVec3d enter,
SbVec3d exit 
) const

◆ intersect() [2/5]

bool SbLined::intersect ( const SbVec3d v0,
const SbVec3d v1,
const SbVec3d v2,
SbVec3d pt,
SbVec3d barycentric,
bool &  front 
) const

◆ 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]

bool SbLined::intersect ( double  angle,
const SbVec3d v0,
const SbVec3d v1,
SbVec3d pt 
) const

◆ setValue()

void SbLined::setValue ( const SbVec3d p0,
const SbVec3d p1 
)

The documentation for this class was generated from the following file: