SbLine Structure |
Represents a directed line in 3D. This is a basic Open Inventor datatype that is used for representing a 3D line. It is used as input and output by a variety of Open Inventor classes.
Namespace: OIV.Inventor
The SbLine type exposes the following members.
Name | Description | |
---|---|---|
SbLine |
Constructor. To struct a line from a position and direction, use SbLine(p0, p0 + dir) |
Name | Description | |
---|---|---|
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetClosestPoint |
Returns the closest point on the line to the given point.
| |
GetClosestPoints |
Finds the two closest points between this line and line2, and loads them
into ptOnThis and ptOnLine2.
| |
GetDirection | Obsolete.
Use direction property instead.
| |
GetDirection(SbVec3f) |
Gets the direction of the line.
| |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetPosition | Obsolete.
Use position property instead.
| |
GetPosition(SbVec3f) |
Gets the position of the line.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetPosDir(SbVec3f, SbVec3f) |
Sets line using a position and a direction vector.
| |
SetPosDir(SbVec3f, SbVec3f) |
Sets line using a position and a direction vector.
| |
SetValue(SbVec3f, SbVec3f) |
Sets line to pass through points p0 and p1.
| |
SetValue(SbVec3f, SbVec3f) |
Sets line to pass through points p0 and p1.
| |
ToString |
Converts this SbLine structure to a human readable string.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
Direction |
Gets or sets a vector indicating the direction of line.
When setting the direction, the vector value is automatically normalized.
| |
Position |
Gets or sets a vector indicating indicating
the position of line origin point.
|