18#ifndef itkTriangleHelper_h
19#define itkTriangleHelper_h
30template <
typename TPo
int>
40 static constexpr unsigned int PointDimension = PointType::PointDimension;
89#include "itkTriangleHelper.hxx"
A convenience class for computation of various triangle elements in 2D or 3D.
static PointType ComputeBarycenter(const CoordRepType &iA1, const PointType &iP1, const CoordRepType &iA2, const PointType &iP2, const CoordRepType &iA3, const PointType &iP3)
Compute barycenter, with given weights.
static bool IsObtuse(const PointType &iA, const PointType &iB, const PointType &iC)
return true if (iA,iB,iC) forms an Obtuse angle (above 90 degrees)
typename PointType::CoordRepType CoordRepType
static CoordRepType ComputeMixedArea(const PointType &iP1, const PointType &iP2, const PointType &iP3)
static PointType ComputeGravityCenter(const PointType &iP1, const PointType &iP2, const PointType &iP3)
Compute center of mass.
static PointType ComputeCircumCenter(const PointType &iP1, const PointType &iP2, const PointType &iP3)
Compute circum center.
static VectorType ComputeNormal(const PointType &iA, const PointType &iB, const PointType &iC)
Compute Normal vector to the triangle formed by (iA,iB,iC)
static PointType ComputeConstrainedCircumCenter(const PointType &iP1, const PointType &iP2, const PointType &iP3)
Compute circum center constrained to be inside the triangle.
static CoordRepType ComputeArea(const PointType &iP1, const PointType &iP2, const PointType &iP3)
Compute Area.
static CoordRepType Cotangent(const PointType &iA, const PointType &iB, const PointType &iC)
Compute cotangent(iA,iB,iC)
typename PointType::VectorType VectorType
static CoordRepType ComputeAngle(const PointType &iP1, const PointType &iP2, const PointType &iP3)
Compute angles (iA,iB,iC)
ImageBaseType::SpacingType VectorType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....