CGAL 5.1 - 2D and 3D Linear Geometry Kernel

See also
CGAL::collinear()
CGAL::left_turn()
CGAL::right_turn()

Functions

template<typename Kernel >
Orientation CGAL::orientation (const CGAL::Point_2< Kernel > &p, const CGAL::Point_2< Kernel > &q, const CGAL::Point_2< Kernel > &r)
 returns CGAL::LEFT_TURN, if r lies to the left of the oriented line l defined by p and q, returns CGAL::RIGHT_TURN if r lies to the right of l, and returns CGAL::COLLINEAR if r lies on l. More...
 
template<typename Kernel >
Orientation CGAL::orientation (const CGAL::Vector_2< Kernel > &u, const CGAL::Vector_2< Kernel > &v)
 returns CGAL::LEFT_TURN if u and v form a left turn, returns CGAL::RIGHT_TURN if u and v form a right turn, and returns CGAL::COLLINEAR if u and v are collinear. More...
 
template<typename Kernel >
Orientation CGAL::orientation (const CGAL::Point_3< Kernel > &p, const CGAL::Point_3< Kernel > &q, const CGAL::Point_3< Kernel > &r, const CGAL::Point_3< Kernel > &s)
 returns CGAL::POSITIVE, if s lies on the positive side of the oriented plane h defined by p, q, and r, returns CGAL::NEGATIVE if s lies on the negative side of h, and returns CGAL::COPLANAR if s lies on h. More...
 
template<typename Kernel >
Orientation CGAL::orientation (const CGAL::Vector_3< Kernel > &u, const CGAL::Vector_3< Kernel > &v, const CGAL::Vector_3< Kernel > &w)
 returns CGAL::NEGATIVE if u, v and w are negatively oriented, CGAL::POSITIVE if u, v and w are positively oriented, and CGAL::COPLANAR if u, v and w are coplanar. More...
 

Function Documentation

◆ orientation() [1/4]

template<typename Kernel >
Orientation CGAL::orientation ( const CGAL::Point_2< Kernel > &  p,
const CGAL::Point_2< Kernel > &  q,
const CGAL::Point_2< Kernel > &  r 
)

#include <CGAL/Kernel/global_functions.h>

returns CGAL::LEFT_TURN, if r lies to the left of the oriented line l defined by p and q, returns CGAL::RIGHT_TURN if r lies to the right of l, and returns CGAL::COLLINEAR if r lies on l.

◆ orientation() [2/4]

template<typename Kernel >
Orientation CGAL::orientation ( const CGAL::Point_3< Kernel > &  p,
const CGAL::Point_3< Kernel > &  q,
const CGAL::Point_3< Kernel > &  r,
const CGAL::Point_3< Kernel > &  s 
)

#include <CGAL/Kernel/global_functions.h>

returns CGAL::POSITIVE, if s lies on the positive side of the oriented plane h defined by p, q, and r, returns CGAL::NEGATIVE if s lies on the negative side of h, and returns CGAL::COPLANAR if s lies on h.

◆ orientation() [3/4]

template<typename Kernel >
Orientation CGAL::orientation ( const CGAL::Vector_2< Kernel > &  u,
const CGAL::Vector_2< Kernel > &  v 
)

#include <CGAL/Kernel/global_functions.h>

returns CGAL::LEFT_TURN if u and v form a left turn, returns CGAL::RIGHT_TURN if u and v form a right turn, and returns CGAL::COLLINEAR if u and v are collinear.

◆ orientation() [4/4]

template<typename Kernel >
Orientation CGAL::orientation ( const CGAL::Vector_3< Kernel > &  u,
const CGAL::Vector_3< Kernel > &  v,
const CGAL::Vector_3< Kernel > &  w 
)

#include <CGAL/Kernel/global_functions.h>

returns CGAL::NEGATIVE if u, v and w are negatively oriented, CGAL::POSITIVE if u, v and w are positively oriented, and CGAL::COPLANAR if u, v and w are coplanar.