def orientation(point_p, point_q, point_r):
<EOL>r = ((point_q.y - point_p.y) * (point_r.x - point_q.x) -<EOL>(point_q.x - point_p.x) * (point_r.y - point_q.y))<EOL>if r == <NUM_LIT:0>:<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>return <NUM_LIT:1> if r > <NUM_LIT:0> else <NUM_LIT:2><EOL>
To find orientation of ordered triplet (p, q, r).

:param point_p:
:type point_p: models.Point
:param point_q:
:type point_q: models.Point
:param point_r:
:type point_r: models.Point
:return: 0: p, q and r are colinear
         1: clockwise
         2: counterclockwise
:rtype: int