GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SBLINE (3)

NAME

SbLine — directed line in 3D

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbLine

SYNOPSIS

#include <Inventor/SbLinear.h>

Methods from class SbLine:

       
                    
                     SbLine()    
   
                    
                     SbLine(const SbVec3f &p0, const SbVec3f &p1)    
void    
                    
void                 setValue(const SbVec3f &p0, const SbVec3f &p1)    
SbBool    
                    
SbBool               getClosestPoints(const SbLine &line2, SbVec3f &ptOnThis, SbVec3f &ptOnLine2 ) const    
SbVec3f    
                    
SbVec3f              getClosestPoint(const SbVec3f &point) const    
const SbVec3f &    
                    
const SbVec3f &      getPosition() const    
const SbVec3f &    
                    
const SbVec3f &      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

       
                    
                     SbLine()    
   
                    
                     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.

    void    
                    
void                 setValue(const SbVec3f &p0, const SbVec3f &p1)
Sets line to pass through points p0 and p1.

    SbBool    
                    
SbBool               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.

    SbVec3f    
                    
SbVec3f              getClosestPoint(const SbVec3f &point) const
Returns the closest point on the line to the given point.

    const SbVec3f &    
                    
const SbVec3f &      getPosition() const    
const SbVec3f &    
                    
const SbVec3f &      getDirection() const
Returns position of line origin point and direction vector of line.

FILE FORMAT/DEFAULTS

SEE ALSO

SbVec3f, SbPlane

Search for    or go to Top of page |  Section 3 |  Main Index


SBLINE(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.