man SbLine () - directed line in 3D
NAME
SbLine - directed line in 3D
INHERITS FROM
SbLine
SYNOPSIS
#include <Inventor/SbLinear.h>
Methods from class SbLine:
c
}
c
}
SbLine()
c
}
c
}
SbLine(const SbVec3f &p0, const SbVec3f &p1)
c
}
c
}
setValue(const SbVec3f &p0, const SbVec3f &p1)
c
}
c
}
getClosestPoints(const SbLine &line2, SbVec3f &ptOnThis, SbVec3f &ptOnLine2 ) const
c
}
c
}
getClosestPoint(const SbVec3f &point) const
c
}
c
}
getPosition() const
c
}
c
}
getDirection() const
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.
METHODS
c
}
c
}
SbLine()
c
}
c
}
SbLine(const SbVec3f &p0, const SbVec3f &p1)
Constructors. To construct a line from a position and direction, use: SbLine(p0, p0 + dir). The line is directed from p0 to p1.
c
}
c
}
setValue(const SbVec3f &p0, const SbVec3f &p1)
Sets line to pass through points p0 and p1.
c
}
c
}
getClosestPoints(const SbLine &line2, SbVec3f &ptOnThis, SbVec3f &ptOnLine2 ) const
Finds the two closest points between this line and line2, and loads them into ptOnThis and ptOnLine2. Returns FALSE if the lines are parallel (results undefined), and returns TRUE otherwise.
c
}
c
}
getClosestPoint(const SbVec3f &point) const
Returns the closest point on the line to the given point.
c
}
c
}
getPosition() const
c
}
c
}
getDirection() const
Returns position of line origin point and direction vector of line.
SEE ALSO
SbVec3f, SbPlane