Ponca  2cfe00173bb12dda99e12b2b48a0e1f683bc5cdd
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle Struct Reference

Represents a triangle on a sphere of radius one. More...

#include <cncFormulaEigen.h>

Collaboration diagram for Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle:

Static Public Member Functions

static bool isDegenerate (const VectorType &a, const VectorType &b, const VectorType &c)
 Spherical point data type.
static void polarTriangle (const VectorType &a, const VectorType &b, const VectorType &c, VectorType &Ap, VectorType &Bp, VectorType &Cp)
static void interiorAngles (const VectorType &a, const VectorType &b, const VectorType &c, Scalar &alpha, Scalar &beta, Scalar &gamma)
 Returns the interior angles of the spherical triangle ABC.
static Scalar area (const VectorType &a, const VectorType &b, const VectorType &c)
static Scalar algebraicArea (const VectorType &a, const VectorType &b, const VectorType &c)

Detailed Description

template<typename DataPoint>
struct Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle

Represents a triangle on a sphere of radius one.

Definition at line 84 of file cncFormulaEigen.h.

Member Function Documentation

◆ algebraicArea()

template<typename DataPoint>
Scalar Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle::algebraicArea ( const VectorType & a,
const VectorType & b,
const VectorType & c )
inlinestatic
Returns
the (signed) area of the spherical triangle (below 2pi).

Definition at line 156 of file cncFormulaEigen.h.

◆ area()

template<typename DataPoint>
Scalar Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle::area ( const VectorType & a,
const VectorType & b,
const VectorType & c )
inlinestatic
Returns
the (unsigned) area of the spherical triangle (below 2pi).

Definition at line 144 of file cncFormulaEigen.h.

◆ interiorAngles()

template<typename DataPoint>
void Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle::interiorAngles ( const VectorType & a,
const VectorType & b,
const VectorType & c,
Scalar & alpha,
Scalar & beta,
Scalar & gamma )
inlinestatic

Returns the interior angles of the spherical triangle ABC.

Parameters
[out]alphathe interior angle at vertex A.
[out]betathe interior angle at vertex B.
[out]gammathe interior angle at vertex C.

Definition at line 122 of file cncFormulaEigen.h.

◆ isDegenerate()

template<typename DataPoint>
bool Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle::isDegenerate ( const VectorType & a,
const VectorType & b,
const VectorType & c )
inlinestatic

Spherical point data type.

Definition at line 87 of file cncFormulaEigen.h.

◆ polarTriangle()

template<typename DataPoint>
void Ponca::internal::CNCEigen< DataPoint >::SphericalTriangle::polarTriangle ( const VectorType & a,
const VectorType & b,
const VectorType & c,
VectorType & Ap,
VectorType & Bp,
VectorType & Cp )
inlinestatic
Returns
the polar triangle associated with this triangle.

Definition at line 103 of file cncFormulaEigen.h.