CTL  0.6.1
Computed Tomography Library
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CTL::assist::Circle3D Struct Reference

The Circle3D struct represents a circle in three dimensions. More...

#include <fdkreconstructor.h>

Collaboration diagram for CTL::assist::Circle3D:
Collaboration graph
[legend]

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
 

Detailed Description

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).

Member Function Documentation

◆ fromThreePoints()

Circle3D CTL::assist::Circle3D::fromThreePoints ( const mat::Matrix< 3, 1 > &  p1,
const mat::Matrix< 3, 1 > &  p2,
const mat::Matrix< 3, 1 > &  p3 
)
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.


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