#include <iostream>
#include <CGAL/Simple_cartesian.h>
int main()
{
{
Point_2 p(0, 0.3), q(1, 0.6), r(2, 0.9);
}
{
Point_2 p(0, 1.0/3.0), q(1, 2.0/3.0), r(2, 1);
}
{
Point_2 p(0,0), q(1, 1), r(2, 2);
}
return 0;
}
A type representing points in two dimensions.
Definition: GeomObjects.h:362
bool collinear(const CGAL::Point_2< Kernel > &p, const CGAL::Point_2< Kernel > &q, const CGAL::Point_2< Kernel > &r)
returns true, iff p, q, and r are collinear.
Definition: FunctionObjectConcepts.h:2
A model for a Kernel using Cartesian coordinates to represent the geometric objects.
Definition: Simple_cartesian.h:31