Did I find the right examples for you? yes no      Crawl my project      Python Jobs

# py2d.Math.point_orientation

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
```Returns the orientation of the triangle a, b, c.

Return True if a,b,c are oriented clock-wise.
```

src/p/y/Py2D-HEAD/py2d/Navigation.py   Py2D(Download)
```		edge = self._polygons[i].neighbors[self._polygons[i+1]]

left, right = (edge, edge) if py2d.Math.point_orientation(position, edge, edge) else (edge, edge)

for j in range(i+1, len(self._polygons)-1):
edge = self._polygons[j].neighbors[self._polygons[j+1]]
new_left, new_right = (edge, edge) if py2d.Math.point_orientation(position, edge, edge) else (edge, edge)

# make the funnel smaller
if py2d.Math.point_orientation(position, left, new_left): left = new_left
```
```			# make the funnel smaller
if py2d.Math.point_orientation(position, left, new_left): left = new_left
if not py2d.Math.point_orientation(position, left, right):
return right

if not py2d.Math.point_orientation(position, right, new_right): right = new_right
```