Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
point_utils.H File Reference

Legacy geometric utilities — use point.H functions directly. More...

#include <point.H>
Include dependency graph for point_utils.H:

Go to the source code of this file.

Functions

Geom_Number area_of_triangle_legacy (const Point &a, const Point &b, const Point &c)
 
bool points_are_colinear (const Point &a, const Point &b, const Point &c)
 
bool c_is_to_left_ (const Point &a, const Point &b, const Point &c)
 
bool is_clockwise (const Point &a, const Point &b, const Point &c)
 
bool left_on (const Point &a, const Point &b, const Point &c)
 
bool proper_intersection (const Point &a, const Point &b, const Point &c, const Point &d)
 
bool between (const Point &a, const Point &b, const Point &c)
 
bool intersect_improp (const Point &a, const Point &b, const Point &c, const Point &d)
 
bool intersectp (const Point &a, const Point &b, const Point &c, const Point &d)
 

Detailed Description

Legacy geometric utilities — use point.H functions directly.

All functions in this file are deprecated. Prefer the canonical implementations in point.H: area_of_parallelogram(), orientation(), on_segment(), segments_intersect(), segment_intersection_point().

Deprecated:
Use point.H functions directly.
Author
Leandro Rabindranath León

Definition in file point_utils.H.

Function Documentation

◆ area_of_triangle_legacy()

Geom_Number area_of_triangle_legacy ( const Point a,
const Point b,
const Point c 
)
inline

Definition at line 51 of file point_utils.H.

◆ between()

bool between ( const Point a,
const Point b,
const Point c 
)
inline

Definition at line 99 of file point_utils.H.

References points_are_colinear().

Referenced by intersect_improp(), and TEST_F().

◆ c_is_to_left_()

bool c_is_to_left_ ( const Point a,
const Point b,
const Point c 
)
inline

Definition at line 67 of file point_utils.H.

Referenced by proper_intersection().

◆ intersect_improp()

bool intersect_improp ( const Point a,
const Point b,
const Point c,
const Point d 
)
inline

Definition at line 113 of file point_utils.H.

References between().

Referenced by intersectp().

◆ intersectp()

bool intersectp ( const Point a,
const Point b,
const Point c,
const Point d 
)
inline

Definition at line 121 of file point_utils.H.

References intersect_improp(), and proper_intersection().

◆ is_clockwise()

bool is_clockwise ( const Point a,
const Point b,
const Point c 
)
inline

Definition at line 73 of file point_utils.H.

◆ left_on()

bool left_on ( const Point a,
const Point b,
const Point c 
)
inline

Definition at line 79 of file point_utils.H.

◆ points_are_colinear()

bool points_are_colinear ( const Point a,
const Point b,
const Point c 
)
inline

Definition at line 59 of file point_utils.H.

Referenced by between(), and proper_intersection().

◆ proper_intersection()

bool proper_intersection ( const Point a,
const Point b,
const Point c,
const Point d 
)
inline

Definition at line 85 of file point_utils.H.

References c_is_to_left_(), and points_are_colinear().

Referenced by intersectp().