#include <iostream>
#include <CGAL/Simple_cartesian.h>
int main()
{
Point_2 p(1,1), q(10,10);
std::cout << "p = " << p << std::endl;
std::cout << "q = " << q.x() << " " << q.y() << std::endl;
std::cout << "sqdist(p,q) = "
Segment_2 s(p,q);
Point_2 m(5, 9);
std::cout << "m = " << m << std::endl;
std::cout << "sqdist(Segment_2(p,q), m) = "
std::cout << "p, q, and m ";
std::cout << "are collinear\n";
break;
std::cout << "make a left turn\n";
break;
std::cout << "make a right turn\n";
break;
}
return 0;
}
A type representing points in two dimensions.
Definition: GeomObjects.h:362
A type representing segments in two dimensions.
Definition: GeomObjects.h:517
Orientation orientation(ForwardIterator first, ForwardIterator last)
FT squared_distance(Point_d< R > p, Point_d< R > q)
Point_d< R > midpoint(const Point_d< R > &p, const Point_d< R > &q)
const CGAL::Orientation RIGHT_TURN
Definition: enum.h:113
const CGAL::Orientation LEFT_TURN
Definition: enum.h:104
const CGAL::Orientation COLLINEAR
Definition: enum.h:95
Definition: FunctionObjectConcepts.h:2
A model for a Kernel using Cartesian coordinates to represent the geometric objects.
Definition: Simple_cartesian.h:31