Click or drag to resize
SbLined Structure
Directed line in 3D.

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
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 10.3.0.0.Release.e0557e69f65c2f4b712d9d57d8855c64671533f0
Syntax
public struct SbLined

The SbLined type exposes the following members.

Constructors
  NameDescription
Public methodSbLined
Constructor. To struct a line from a position and direction, use
SbLine(p0, p0 + dir)
. The line is directed from p0 to p1.
Top
Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetClosestPoint
Returns the closest point on the line to the given point.
Public methodGetClosestPoints
Finds the two closest points between this line and line2, and loads them into ptOnThis and ptOnLine2.
Public methodGetDirection Obsolete.
Use direction property instead.
Public methodGetDirection(SbVec3d)
Gets the direction of the line.
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetPosition Obsolete.
Use position property instead.
Public methodGetPosition(SbVec3d)
Gets the position of the line.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSetPosDir(SbVec3d, SbVec3d)
Sets line using a position and a direction vector.
Public methodSetPosDir(SbVec3d, SbVec3d)
Sets line using a position and a direction vector.
Public methodSetValue(SbVec3d, SbVec3d)
Sets line to pass through points p0 and p1.
Public methodSetValue(SbVec3d, SbVec3d)
Sets line to pass through points p0 and p1.
Public methodToString
Converts this SbLined structure to a human readable string.
(Overrides ValueTypeToString.)
Top
Properties
  NameDescription
Public propertyDirection
Gets or sets a vector indicating the direction of line. When setting the direction, the vector value is automatically normalized.
Public propertyPosition
Gets or sets a vector indicating indicating the position of line origin point.
Top
See Also