|
OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
|
2D point value type. Mirrors occtl_point2_t with STL-flavoured access.
More...
#include <geom.hpp>
Public Member Functions | |
| Point2 () noexcept | |
| Default-constructs the origin (0, 0). | |
| Point2 (const double theX, const double theY) noexcept | |
| Constructs from explicit coordinates. | |
| Point2 (const occtl_point2_t &theC) noexcept | |
| Wraps an existing C value type (zero-cost). | |
| const occtl_point2_t & | c_type () const noexcept |
| Borrows-it view of the underlying C value type, for direct ABI calls. | |
| double | x () const noexcept |
| X coordinate. | |
| double | y () const noexcept |
| Y coordinate. | |
| double | distance_to (const Point2 &theOther) const noexcept |
| Euclidean distance to another point. Never throws. | |
| Point2 | midpoint (const Point2 &theOther) const noexcept |
| Midpoint between this and another point. Never throws. | |
2D point value type. Mirrors occtl_point2_t with STL-flavoured access.