CGAL 5.1 - 2D and 3D Linear Geometry Kernel

Functions

template<typename Kernel >
CGAL::Point_2< KernelCGAL::midpoint (const CGAL::Point_2< Kernel > &p, const CGAL::Point_2< Kernel > &q)
 computes the midpoint of the segment pq. More...
 
template<typename Kernel >
CGAL::Point_3< KernelCGAL::midpoint (const CGAL::Point_3< Kernel > &p, const CGAL::Point_3< Kernel > &q)
 computes the midpoint of the segment pq. More...
 

Function Documentation

◆ midpoint() [1/2]

template<typename Kernel >
CGAL::Point_2<Kernel> CGAL::midpoint ( const CGAL::Point_2< Kernel > &  p,
const CGAL::Point_2< Kernel > &  q 
)

#include <CGAL/Kernel/global_functions.h>

computes the midpoint of the segment pq.

◆ midpoint() [2/2]

template<typename Kernel >
CGAL::Point_3<Kernel> CGAL::midpoint ( const CGAL::Point_3< Kernel > &  p,
const CGAL::Point_3< Kernel > &  q 
)

#include <CGAL/Kernel/global_functions.h>

computes the midpoint of the segment pq.