Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
T_Delaunay_triangulation_extension_3< DelaunayTriangulation3 >::Get_squared_length_of_dual_of_facet Class Reference

Given a facet, return the squared length of its dual segment. More...

#include <Delaunay_triangulation_extension_3.hpp>

Constructors

 Get_squared_length_of_dual_of_facet (const DelaunayTriangulation3 &T)
 The functor has to be constructed with a given 3D Delaunay triangulation. More...
 

Functors

FT operator() (const Facet &facet) const
 Return the squared length of the dual segment of the input facet. More...
 
template<class NT >
void operator() (const Facet &facet, NT &squared_length) const
 Same as previous, but allows different number types. More...
 
void operator() (const Facet &facet, double &squared_length) const
 Specializes the last functor for double number types. More...
 

Detailed Description

template<class DelaunayTriangulation3>
class SBL::GT::T_Delaunay_triangulation_extension_3< DelaunayTriangulation3 >::Get_squared_length_of_dual_of_facet

Given a facet, return the squared length of its dual segment.

It uses the Get_dual_of_facet functor for storing the dual as a segment, and then computes its length.

Constructor & Destructor Documentation

◆ Get_squared_length_of_dual_of_facet()

Get_squared_length_of_dual_of_facet ( const DelaunayTriangulation3 &  T)
inline

The functor has to be constructed with a given 3D Delaunay triangulation.

Member Function Documentation

◆ operator()() [1/3]

FT operator() ( const Facet facet) const
inline

Return the squared length of the dual segment of the input facet.

If the dual is infinite, it returns instead the infinite value (or a maximal value if no infinite value exists).

◆ operator()() [2/3]

void operator() ( const Facet facet,
double &  squared_length 
) const
inline

Specializes the last functor for double number types.

◆ operator()() [3/3]

void operator() ( const Facet facet,
NT &  squared_length 
) const
inline

Same as previous, but allows different number types.