SHAPER  9.12.0
GeomAPI_Angle Class Reference

Build an angle. More...

Inheritance diagram for GeomAPI_Angle:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Angle (const std::shared_ptr< GeomAPI_Edge > &theEdge1, const std::shared_ptr< GeomAPI_Edge > &theEdge2, const std::shared_ptr< GeomAPI_Pnt > &thePoint)
 Creation of an angle defined by two edges in the given intersection point. More...
 
GEOMAPI_EXPORT GeomAPI_Angle (const std::shared_ptr< GeomAPI_Pnt > &thePoint1, const std::shared_ptr< GeomAPI_Pnt > &thePoint2, const std::shared_ptr< GeomAPI_Pnt > &thePoint3)
 Creation of an angle defined by 3 points (the second point is an apex of an angle). More...
 
GEOMAPI_EXPORT double angleDegree ()
 Returns value of the angle in degrees. More...
 
GEOMAPI_EXPORT double angleRadian ()
 Returns value of the angle in radians. More...
 
template<class T >
T * implPtr ()
 Returns the pointer to the impl. More...
 
template<class T >
const T * implPtr () const
 Returns the pointer to the impl. More...
 
template<class T >
const T & impl () const
 Returns the reference object of the impl. More...
 
template<class T >
void setImpl (T *theImpl)
 Updates the impl (deletes the old one) More...
 
GEOMAPI_EXPORT bool empty () const
 Returns true if the impl is empty. More...
 

Detailed Description

Build an angle.

Constructor & Destructor Documentation

◆ GeomAPI_Angle() [1/2]

GeomAPI_Angle::GeomAPI_Angle ( const std::shared_ptr< GeomAPI_Edge > &  theEdge1,
const std::shared_ptr< GeomAPI_Edge > &  theEdge2,
const std::shared_ptr< GeomAPI_Pnt > &  thePoint 
)

Creation of an angle defined by two edges in the given intersection point.

◆ GeomAPI_Angle() [2/2]

GeomAPI_Angle::GeomAPI_Angle ( const std::shared_ptr< GeomAPI_Pnt > &  thePoint1,
const std::shared_ptr< GeomAPI_Pnt > &  thePoint2,
const std::shared_ptr< GeomAPI_Pnt > &  thePoint3 
)

Creation of an angle defined by 3 points (the second point is an apex of an angle).

Member Function Documentation

◆ angleDegree()

double GeomAPI_Angle::angleDegree ( )

Returns value of the angle in degrees.

◆ angleRadian()

double GeomAPI_Angle::angleRadian ( )

Returns value of the angle in radians.

◆ implPtr() [1/2]

template<class T >
T* GeomAPI_Interface::implPtr ( )
inlineinherited

Returns the pointer to the impl.

◆ implPtr() [2/2]

template<class T >
const T* GeomAPI_Interface::implPtr ( ) const
inlineinherited

Returns the pointer to the impl.

◆ impl()

template<class T >
const T& GeomAPI_Interface::impl ( ) const
inlineinherited

Returns the reference object of the impl.

◆ setImpl()

template<class T >
void GeomAPI_Interface::setImpl ( T *  theImpl)
inlineinherited

Updates the impl (deletes the old one)

◆ empty()

bool GeomAPI_Interface::empty ( ) const
inherited

Returns true if the impl is empty.