CGAL 6.0.2 - 2D and 3D Linear Geometry Kernel

Loading...
Searching...
No Matches
Functions
CGAL::approximate_angle()
2D and 3D Linear Geometry Kernel Reference » Global Kernel Functions

##

## Functions
template<typename Kernel >
Kernel::FT | CGAL::approximate_angle (const CGAL::Point_3< Kernel > &p, const CGAL::Point_3< Kernel > &q, const CGAL::Point_3< Kernel > &r)
| returns an approximation of the angle between `p-q` and `r-q`.
template<typename Kernel >
Kernel::FT | CGAL::approximate_angle (const CGAL::Vector_3< Kernel > &u, const CGAL::Vector_3< Kernel > &v)
| returns an approximation of the angle between `u` and `v`.

## Function Documentation

## ◆ approximate_angle() [1/2]

template<typename Kernel >

Kernel::FT CGAL::approximate_angle | ( | const CGAL::Point_3< Kernel > & | p,
|  | const CGAL::Point_3< Kernel > & | q,
|  | const CGAL::Point_3< Kernel > & | r
| ) |  |

`#include <CGAL/Kernel/global_functions.h>`

returns an approximation of the angle between `p-q` and `r-q`.

The angle is given in degrees.

Precondition
  `p != q` and `r != q`.

## ◆ approximate_angle() [2/2]

template<typename Kernel >

Kernel::FT CGAL::approximate_angle | ( | const CGAL::Vector_3< Kernel > & | u,
|  | const CGAL::Vector_3< Kernel > & | v
| ) |  |

`#include <CGAL/Kernel/global_functions.h>`

returns an approximation of the angle between `u` and `v`.

The angle is given in degrees.

Precondition
  `u` and `v` are not equal to the null vector.