SHAPER
9.13.0
|
Line in 3D. More...
Public Member Functions | |
GEOMAPI_EXPORT | GeomAPI_Lin (const double theStartX, const double theStartY, const double theStartZ, const double theEndX, const double theEndY, const double theEndZ) |
Creation of line defined by cordinates of start and end points. More... | |
GEOMAPI_EXPORT | GeomAPI_Lin (const std::shared_ptr< GeomAPI_Pnt > &theStart, const std::shared_ptr< GeomAPI_Pnt > &theEnd) |
Creation of line defined by start and end points. More... | |
GEOMAPI_EXPORT | GeomAPI_Lin (const std::shared_ptr< GeomAPI_Pnt > &theOrigin, const std::shared_ptr< GeomAPI_Dir > &theDirection) |
Creation of line defined by origin and direction. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > | location () |
Returns point on the line (first point) More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > | direction () |
Returns a line direction. More... | |
GEOMAPI_EXPORT double | distance (const std::shared_ptr< GeomAPI_Pnt > &thePoint) const |
Distance between two points. More... | |
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt > | intersect (const std::shared_ptr< GeomAPI_Lin > &theLine) const |
Intersection of two lines. More... | |
GEOMAPI_EXPORT const std::shared_ptr< GeomAPI_Pnt > | project (const std::shared_ptr< GeomAPI_Pnt > &thePoint) const |
Project point on line. More... | |
GEOMAPI_EXPORT double | projParam (const std::shared_ptr< GeomAPI_Pnt > &thePoint) const |
Returns parameter of the point projection. More... | |
GEOMAPI_EXPORT bool | contains (const std::shared_ptr< GeomAPI_Pnt > thePoint, const double theLinearTolerance=1.e-7) const |
GEOMAPI_EXPORT bool | isParallel (const std::shared_ptr< GeomAPI_Lin > theLin) const |
GEOMAPI_EXPORT bool | isCoplanar (const std::shared_ptr< GeomAPI_Lin > theLin) const |
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... | |
Line in 3D.
GeomAPI_Lin::GeomAPI_Lin | ( | const double | theStartX, |
const double | theStartY, | ||
const double | theStartZ, | ||
const double | theEndX, | ||
const double | theEndY, | ||
const double | theEndZ | ||
) |
Creation of line defined by cordinates of start and end points.
GeomAPI_Lin::GeomAPI_Lin | ( | const std::shared_ptr< GeomAPI_Pnt > & | theStart, |
const std::shared_ptr< GeomAPI_Pnt > & | theEnd | ||
) |
Creation of line defined by start and end points.
GeomAPI_Lin::GeomAPI_Lin | ( | const std::shared_ptr< GeomAPI_Pnt > & | theOrigin, |
const std::shared_ptr< GeomAPI_Dir > & | theDirection | ||
) |
Creation of line defined by origin and direction.
std::shared_ptr< GeomAPI_Pnt > GeomAPI_Lin::location | ( | ) |
Returns point on the line (first point)
std::shared_ptr< GeomAPI_Dir > GeomAPI_Lin::direction | ( | ) |
Returns a line direction.
double GeomAPI_Lin::distance | ( | const std::shared_ptr< GeomAPI_Pnt > & | thePoint | ) | const |
Distance between two points.
const std::shared_ptr< GeomAPI_Pnt > GeomAPI_Lin::intersect | ( | const std::shared_ptr< GeomAPI_Lin > & | theLine | ) | const |
Intersection of two lines.
const std::shared_ptr< GeomAPI_Pnt > GeomAPI_Lin::project | ( | const std::shared_ptr< GeomAPI_Pnt > & | thePoint | ) | const |
Project point on line.
double GeomAPI_Lin::projParam | ( | const std::shared_ptr< GeomAPI_Pnt > & | thePoint | ) | const |
Returns parameter of the point projection.
bool GeomAPI_Lin::contains | ( | const std::shared_ptr< GeomAPI_Pnt > | thePoint, |
const double | theLinearTolerance = 1.e-7 |
||
) | const |
bool GeomAPI_Lin::isParallel | ( | const std::shared_ptr< GeomAPI_Lin > | theLin | ) | const |
bool GeomAPI_Lin::isCoplanar | ( | const std::shared_ptr< GeomAPI_Lin > | theLin | ) | const |
|
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.