CGAL 5.1 - 2D and 3D Linear Geometry Kernel
Kernel::LessSignedDistanceToLine_2 Class Reference

#include <Concepts/FunctionObjectConcepts.h>

Definition

Refines:
AdaptableFunctor (with four arguments)
See also
CGAL::has_smaller_signed_distance_to_line()

Operations

A model of this concept must provide:

bool operator() (const Kernel::Line_2 &l, const Kernel::Point_2 &p, const Kernel::Point_2 &q)
 returns true if the signed distance from p and the oriented line l is smaller than the signed distance of q and l. More...
 
bool operator() (const Kernel::Point_2 &p, const Kernel::Point_2 &q, const Kernel::Point_2 &r, const Kernel::Point_2 &s)
 returns true if the signed distance from r and the oriented line l defined by p and q is smaller than the signed distance of s and l. More...
 

Member Function Documentation

◆ operator()() [1/2]

bool Kernel::LessSignedDistanceToLine_2::operator() ( const Kernel::Line_2 l,
const Kernel::Point_2 p,
const Kernel::Point_2 q 
)

returns true if the signed distance from p and the oriented line l is smaller than the signed distance of q and l.

◆ operator()() [2/2]

bool Kernel::LessSignedDistanceToLine_2::operator() ( const Kernel::Point_2 p,
const Kernel::Point_2 q,
const Kernel::Point_2 r,
const Kernel::Point_2 s 
)

returns true if the signed distance from r and the oriented line l defined by p and q is smaller than the signed distance of s and l.

Precondition
p != q.