OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl::Point3 Struct Reference

3D point value type. Mirrors occtl_point3_t with STL-flavoured access. More...

#include <geom.hpp>

Public Member Functions

 Point3 () noexcept
 Default-constructs the origin (0, 0, 0).
 
 Point3 (const double theX, const double theY, const double theZ) noexcept
 Constructs from explicit coordinates.
 
 Point3 (const occtl_point3_t &theC) noexcept
 Wraps an existing C value type (zero-cost).
 
const occtl_point3_tc_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 z () const noexcept
 Z coordinate.
 
double distance_to (const Point3 &theOther) const noexcept
 Euclidean distance to another point. Never throws.
 
Point3 midpoint (const Point3 &theOther) const noexcept
 Midpoint between this and another point. Never throws.
 

Detailed Description

3D point value type. Mirrors occtl_point3_t with STL-flavoured access.


The documentation for this struct was generated from the following file: