logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SbPlane — oriented plane in 3D

Description

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

Inherits From

       SbPlane

Methods

SbPlane()SbPlane(constSbVec3f&p0,constSbVec3f&p1,constSbVec3f&p2)SbPlane(constSbVec3f&normal,floatdistance)SbPlane(constSbVec3f&normal,constSbVec3f&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.

     voidoffset(floatd)
          Offset a plane by a given distance.

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

     voidtransform(constSbMatrix&matrix)
          Transforms the plane by the given matrix.

     SbBoolisInHalfSpace(constSbVec3f&point)const
          Returns TRUE if the given point is within the half-space defined by the plane.

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

     floatgetDistanceFromOrigin()const
          Returns distance from origin to plane.

     intoperator==(constSbPlane&p1,constSbPlane&p2)intoperator!=(constSbPlane&p1,constSbPlane&p2)
          Equality/inequality comparison operators.

Name

       SbPlane — oriented plane in 3D

See Also

SbVec3f,SbLineSbPlane(3IV)()

Synopsis

#include<Inventor/SbLinear.h>

          Methods from class SbPlane:

                         SbPlane()SbPlane(constSbVec3f&p0,constSbVec3f&p1,constSbVec3f&p2)SbPlane(constSbVec3f&normal,floatdistance)SbPlane(constSbVec3f&normal,constSbVec3f&point)voidoffset(floatd)SbBoolintersect(constSbLine&l,SbVec3f&intersection)constvoidtransform(constSbMatrix&matrix)SbBoolisInHalfSpace(constSbVec3f&point)constconstSbVec3f&getNormal()constfloatgetDistanceFromOrigin()constintoperator==(constSbPlane&p1,constSbPlane&p2)intoperator!=(constSbPlane&p1,constSbPlane&p2)

See Also