CTL
0.6.1
Computed Tomography Library
|
The Circle3D struct represents a circle in three dimensions. More...
#include <fdkreconstructor.h>
Public Member Functions | |
double | distanceToPoint (const mat::Matrix< 3, 1 > &pt) const |
Returns the (shortest) Euclidean distance between the point pt and the circle. | |
Static Public Member Functions | |
static Circle3D | fromThreePoints (const mat::Matrix< 3, 1 > &p1, const mat::Matrix< 3, 1 > &p2, const mat::Matrix< 3, 1 > &p3) |
Constructs a Circle3D from the three points p1, p2, and p3. More... | |
Public Attributes | |
mat::Matrix< 3, 1 > | center |
mat::Matrix< 3, 1 > | normal |
double | radius |
The Circle3D struct represents a circle in three dimensions.
The circle is represented by its center point, its radius (in mm), and the normal vector (normalized).
|
static |
Constructs a Circle3D from the three points p1, p2, and p3.
The three input points must not all lie on a straight line. Issues a warning message otherwise and returns an undefined result.