SHAPER  9.12.0
GeomAPI_Angle2d Class Reference

Build an angle in plane. More...

Inheritance diagram for GeomAPI_Angle2d:
Inheritance graph

Public Member Functions

GEOMAPI_EXPORT GeomAPI_Angle2d (const std::shared_ptr< GeomAPI_Pnt2d > &theStartLine1, const std::shared_ptr< GeomAPI_Pnt2d > &theEndLine1, const std::shared_ptr< GeomAPI_Pnt2d > &theStartLine2, const std::shared_ptr< GeomAPI_Pnt2d > &theEndLine2)
 Creation of an angle defined by two lines' start, end points. More...
 
GEOMAPI_EXPORT GeomAPI_Angle2d (const std::shared_ptr< GeomAPI_Lin2d > &theLine1, bool theReversed1, const std::shared_ptr< GeomAPI_Lin2d > &theLine2, bool theReversed2)
 Creation of an angle defined by two lines taking into account their orientation. More...
 
GEOMAPI_EXPORT GeomAPI_Angle2d (const std::shared_ptr< GeomAPI_Pnt2d > &theCenter, const std::shared_ptr< GeomAPI_Pnt2d > &thePoint1, const std::shared_ptr< GeomAPI_Pnt2d > &thePoint2)
 Creation of an angle defined by three points. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt2dcenter ()
 Returns central point of the angle. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt2dfirstPoint ()
 Returns point on the first edge. More...
 
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt2dsecondPoint ()
 Returns point on the second edge. 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...
 
GEOMAPI_EXPORT bool isReversed (int theIndex)
 Returns true if the line is reversed during angle calculation. 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 in plane.

Constructor & Destructor Documentation

◆ GeomAPI_Angle2d() [1/3]

GeomAPI_Angle2d::GeomAPI_Angle2d ( const std::shared_ptr< GeomAPI_Pnt2d > &  theStartLine1,
const std::shared_ptr< GeomAPI_Pnt2d > &  theEndLine1,
const std::shared_ptr< GeomAPI_Pnt2d > &  theStartLine2,
const std::shared_ptr< GeomAPI_Pnt2d > &  theEndLine2 
)

Creation of an angle defined by two lines' start, end points.

◆ GeomAPI_Angle2d() [2/3]

GeomAPI_Angle2d::GeomAPI_Angle2d ( const std::shared_ptr< GeomAPI_Lin2d > &  theLine1,
bool  theReversed1,
const std::shared_ptr< GeomAPI_Lin2d > &  theLine2,
bool  theReversed2 
)

Creation of an angle defined by two lines taking into account their orientation.

◆ GeomAPI_Angle2d() [3/3]

GeomAPI_Angle2d::GeomAPI_Angle2d ( const std::shared_ptr< GeomAPI_Pnt2d > &  theCenter,
const std::shared_ptr< GeomAPI_Pnt2d > &  thePoint1,
const std::shared_ptr< GeomAPI_Pnt2d > &  thePoint2 
)

Creation of an angle defined by three points.

Member Function Documentation

◆ center()

std::shared_ptr< GeomAPI_Pnt2d > GeomAPI_Angle2d::center ( )

Returns central point of the angle.

◆ firstPoint()

std::shared_ptr< GeomAPI_Pnt2d > GeomAPI_Angle2d::firstPoint ( )

Returns point on the first edge.

◆ secondPoint()

std::shared_ptr< GeomAPI_Pnt2d > GeomAPI_Angle2d::secondPoint ( )

Returns point on the second edge.

◆ angleDegree()

double GeomAPI_Angle2d::angleDegree ( )

Returns value of the angle in degrees.

◆ angleRadian()

double GeomAPI_Angle2d::angleRadian ( )

Returns value of the angle in radians.

◆ isReversed()

bool GeomAPI_Angle2d::isReversed ( int  theIndex)

Returns true if the line is reversed during angle calculation.

If theIndex = 0, the result corresponds to the first line, if theIndex = 1, the to the second line

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