1SbLine(3IV)() SbLine(3IV)()
2
3
4
6 SbLine — directed line in 3D
7
9 SbLine
10
12 #include <Inventor/SbLinear.h>
13
14 Methods from class SbLine:
15
16 SbLine()
17 SbLine(const SbVec3f &p0, const SbVec3f &p1)
18 void setValue(const SbVec3f &p0, const SbVec3f &p1)
19 SbBool getClosestPoints(const SbLine &line2, SbVec3f &ptOn‐
20 This, SbVec3f &ptOnLine2 ) const
21 SbVec3f getClosestPoint(const SbVec3f &point) const
22 const SbVec3f & getPosition() const
23 const SbVec3f & getDirection() const
24
25
27 Represents a directed line in 3D. This is a basic Inventor datatype
28 that is used for representing a 3D line. It is used as input and output
29 by a variety of Inventor classes.
30
32 SbLine()
33 SbLine(const SbVec3f &p0, const SbVec3f &p1)
34 Constructors. To construct a line from a position and direction,
35 use: SbLine(p0, p0 + dir). The line is directed from p0 to p1.
36
37 void setValue(const SbVec3f &p0, const SbVec3f &p1)
38 Sets line to pass through points p0 and p1.
39
40 SbBool getClosestPoints(const SbLine &line2, SbVec3f &ptOn‐
41 This, SbVec3f &ptOnLine2 ) const
42 Finds the two closest points between this line and line2, and loads
43 them into ptOnThis and ptOnLine2. Returns FALSE if the lines are
44 parallel (results undefined), and returns TRUE otherwise.
45
46 SbVec3f getClosestPoint(const SbVec3f &point) const
47 Returns the closest point on the line to the given point.
48
49 const SbVec3f & getPosition() const
50 const SbVec3f & getDirection() const
51 Returns position of line origin point and direction vector of line.
52
53
55 SbVec3f, SbPlane
56
57
58
59
60 SbLine(3IV)()