point.hpp File Reference
`#include <algorithm>`
`#include <limits>`
`#include <stdlib.h>`
`#include <iostream>`
`#include <cmath>`
Include dependency graph for point.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Functions

template<class Point >
double angle (const Point &a, const Point &b, const Point &c)

double clamp (double x, double a, double b)

template<class Point >
bool collinear (const Point &p1, const Point &p2, const Point &p3)

template<class Point >
bool coplanar (const Point &p1, const Point &p2, const Point &p3, const Point &p4)

template<class Point >
Point cross (const Point &x, const Point &y)

template<class Point >
double distance (const Point &a, const Point &b)

template<class Point >
double distanceToLine (const Point &x, const Point &y, const Point &p)

template<class Point >
double distanceToTriangle (const Point &x, const Point &y, const Point &z, const Point &p)

template<class Point >
double dot (const Point &x, const Point &y)

template<class Point >
bool inFront (const Point &p1, const Point &p2, const Point &p3, const Point &p4)

template<class Point >
double norm (const Point &a)

template<class Point >
Point sub (const Point &x, const Point &y)

## ◆ angle()

 double angle ( const Point & a, const Point & b, const Point & c )

Definition at line 100 of file point.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

## ◆ clamp()

 double clamp ( double x, double a, double b )
inline

Definition at line 125 of file point.hpp.

Here is the caller graph for this function:

## ◆ collinear()

 bool collinear ( const Point & p1, const Point & p2, const Point & p3 )

Definition at line 59 of file point.hpp.

## ◆ coplanar()

 bool coplanar ( const Point & p1, const Point & p2, const Point & p3, const Point & p4 )

Definition at line 66 of file point.hpp.

Here is the call graph for this function:

## ◆ cross()

 Point cross ( const Point & x, const Point & y )

Definition at line 33 of file point.hpp.

Here is the caller graph for this function:

## ◆ distance()

 double distance ( const Point & a, const Point & b )

Definition at line 88 of file point.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

## ◆ distanceToLine()

 double distanceToLine ( const Point & x, const Point & y, const Point & p )

Definition at line 115 of file point.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

## ◆ distanceToTriangle()

 double distanceToTriangle ( const Point & x, const Point & y, const Point & z, const Point & p )

Definition at line 134 of file point.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

## ◆ dot()

 double dot ( const Point & x, const Point & y )

Definition at line 53 of file point.hpp.

Here is the caller graph for this function:

## ◆ inFront()

 bool inFront ( const Point & p1, const Point & p2, const Point & p3, const Point & p4 )

Definition at line 77 of file point.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

## ◆ norm()

 double norm ( const Point & a )

Definition at line 94 of file point.hpp.

Here is the call graph for this function:

## ◆ sub()

 Point sub ( const Point & x, const Point & y )

Definition at line 43 of file point.hpp.

Here is the caller graph for this function: