0.6.0
Loading...
Searching...
No Matches
mod_cg2_points Module Reference

Functions/Subroutines

logical pure function cg2_are_counterclockwise (p0, p1, p2)
 Return .true. if the points {p0, p1, p2} are defined in counterclockwise order.
 
logical pure function cg2_is_point_left_of_line (l0, l1, p)
 Return .true. if point p is on the left side of the line (l0, l1)
 
logical pure function cg2_is_point_left_of_or_on_line (l0, l1, p)
 Return .true. if point p is on the left side of the line (l0,l1) or on the line.
 
logical pure function cg2_are_points_collinear (p0, p1, p2)
 Return .true. if the points p0, p1 and p2 are collinear.
 
logical pure function cg2_is_point_on_segment (s0, s1, p)
 Return .true. if the point p is on the line segment [s0, s1].
 
double precision pure function cg2_perp_product (p0, p1)
 Return the 2D cross product of two points.
 
double precision pure function cg2_triangle_double_area (p0, p1, p2)
 Return twice the signed area of the triangle {p0, p1, p2}.