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  -  SBPLANE (3)

NAME

SbPlane — oriented plane in 3D

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbPlane

SYNOPSIS

#include <Inventor/SbLinear.h>

Methods from class SbPlane:

       
                    
                     SbPlane()    
   
                    
                     SbPlane(const SbVec3f &p0, const SbVec3f &p1, const SbVec3f &p2)    
   
                    
                     SbPlane(const SbVec3f &normal, float distance)    
   
                    
                     SbPlane(const SbVec3f &normal, const SbVec3f &point)    
void    
                    
void                 offset(float d)    
SbBool    
                    
SbBool               intersect(const SbLine &l, SbVec3f &intersection) const    
void    
                    
void                 transform(const SbMatrix &matrix)    
SbBool    
                    
SbBool               isInHalfSpace(const SbVec3f &point) const    
const SbVec3f &    
                    
const SbVec3f &      getNormal() const    
float    
                    
float                getDistanceFromOrigin() const    
int    
                    
int                  operator ==(const SbPlane &p1, const SbPlane &p2)    
int    
                    
int                  operator !=(const SbPlane &p1, const SbPlane &p2)

DESCRIPTION

Represents an oriented plane in 3D. This is a lightweight class/datatype that is used for arguments to some Inventor objects.

METHODS

       
                    
                     SbPlane()    
   
                    
                     SbPlane(const SbVec3f &p0, const SbVec3f &p1, const SbVec3f &p2)    
   
                    
                     SbPlane(const SbVec3f &normal, float distance)    
   
                    
                     SbPlane(const SbVec3f &normal, const SbVec3f &point)
Constructors. p0, p1, and p2 represent three points in the plane. normal is a normal vector, distance is distance from origin to plane along normal vector, and point is a point in 3-space for the plane to pass through.

    void    
                    
void                 offset(float d)
Offset a plane by a given distance.

    SbBool    
                    
SbBool               intersect(const SbLine &l, SbVec3f &intersection) const
Intersect line and plane, returning TRUE if there is an intersection, FALSE if line is parallel to plane.

    void    
                    
void                 transform(const SbMatrix &matrix)
Transforms the plane by the given matrix.

    SbBool    
                    
SbBool               isInHalfSpace(const SbVec3f &point) const
Returns TRUE if the given point is within the half-space defined by the plane.

    const SbVec3f &    
                    
const SbVec3f &      getNormal() const
Returns normal vector to plane.

    float    
                    
float                getDistanceFromOrigin() const
Returns distance from origin to plane.

    int    
                    
int                  operator ==(const SbPlane &p1, const SbPlane &p2)    
int    
                    
int                  operator !=(const SbPlane &p1, const SbPlane &p2)
Equality/inequality comparison operators.

FILE FORMAT/DEFAULTS

SEE ALSO

SbVec3f, SbLine

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


SBPLANE(3IV) (-->)

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