25#ifndef __vtkvmtkMath_h
26#define __vtkvmtkMath_h
31#include "vtkvmtkWin32Header.h"
33#define VTK_VMTK_NON_OBTUSE 0
34#define VTK_VMTK_OBTUSE_IN_POINT 1
35#define VTK_VMTK_OBTUSE_NOT_IN_POINT 2
51 static double Cotangent(
double point0[3],
double point1[3],
double point2[3]);
57 static double TriangleArea(
double point0[3],
double point1[3],
double point2[3]);
63 static int IsAngleObtuse(
double point0[3],
double point1[3],
double point2[3]);
73 static int IsTriangleObtuse(
double point0[3],
double point1[3],
double point2[3]);
82 static double VoronoiSectorArea(
double point0[3],
double point1[3],
double point2[3]);
91 static double TriangleGradient(
double point0[3],
double point1[3],
double point2[3],
double scalar0,
double scalar1,
double scalar2,
double gradient[3]);
98 static void TwoSphereIntersection(
double center0[3],
double radius0,
double center1[3],
double radius1,
double origin[3],
double normal[3]);
Provides static utility mathematical functions to avoid repeating code across classes.
static double GetLarge(double cookie)
static double AngleBetweenNormals(double normal0[3], double normal1[3])
static vtkvmtkMath * New()
static double Cotangent(double point0[3], double point1[3], double point2[3])
static double VoronoiSectorArea(double point0[3], double point1[3], double point2[3])
static void TwoSphereIntersection(double center0[3], double radius0, double center1[3], double radius1, double origin[3], double normal[3])
static double GetLarge(float cookie)
static double EvaluateSphereFunction(double center[3], double radius, double point[3])
static int IsAngleObtuse(double point0[3], double point1[3], double point2[3])
static double TriangleGradient(double point0[3], double point1[3], double point2[3], double scalar0, double scalar1, double scalar2, double gradient[3])
static double GetTolerance(float cookie)
static int IsTriangleObtuse(double point0[3], double point1[3], double point2[3])
static double TriangleArea(double point0[3], double point1[3], double point2[3])
static double GetTolerance(double cookie)
#define VTK_VMTK_FLOAT_TOL
#define VTK_VMTK_DOUBLE_TOL
#define VTK_VMTK_LARGE_DOUBLE
#define VTK_VMTK_LARGE_FLOAT