CGAL 5.5.5 - 2D and 3D Linear Geometry Kernel

Functions

CGAL::Vector_3< KernelCGAL::unit_normal (const CGAL::Point_3< Kernel > &p, const CGAL::Point_3< Kernel > &q, const CGAL::Point_3< Kernel > &r)
 computes the unit normal vector for the vectors q-p and r-p. More...
 

Function Documentation

◆ unit_normal()

CGAL::Vector_3<Kernel> CGAL::unit_normal ( const CGAL::Point_3< Kernel > &  p,
const CGAL::Point_3< Kernel > &  q,
const CGAL::Point_3< Kernel > &  r 
)

#include <CGAL/Kernel/global_functions.h>

computes the unit normal vector for the vectors q-p and r-p.

Precondition
The points p, q, and r must not be collinear.