SHAPER
9.12.0
|
Build an angle in plane. More...
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_Pnt2d > | center () |
Returns central point of the angle. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt2d > | firstPoint () |
Returns point on the first edge. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt2d > | secondPoint () |
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... | |
Build an angle in plane.
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::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::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.
std::shared_ptr< GeomAPI_Pnt2d > GeomAPI_Angle2d::center | ( | ) |
Returns central point of the angle.
std::shared_ptr< GeomAPI_Pnt2d > GeomAPI_Angle2d::firstPoint | ( | ) |
Returns point on the first edge.
std::shared_ptr< GeomAPI_Pnt2d > GeomAPI_Angle2d::secondPoint | ( | ) |
Returns point on the second edge.
double GeomAPI_Angle2d::angleDegree | ( | ) |
Returns value of the angle in degrees.
double GeomAPI_Angle2d::angleRadian | ( | ) |
Returns value of the angle in radians.
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
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the reference object of the impl.
|
inlineinherited |
Updates the impl (deletes the old one)
|
inherited |
Returns true if the impl is empty.