Boost logo

Geometry :

Subject: [ggl] Point in triangle test available?
From: Hartmut Kaiser (hartmut.kaiser)
Date: 2010-12-01 15:20:31


> > Does Boost.Geometry have a pre-canned 'point in triangle' test
> > available? I could come up with one myself easily, but asking might
> > allow me to stay lazy :-P
>
> There is point in polygon, of course. I'm not sure of the syntax
> required, however.

I understand that, but point in triangle is usually simpler (I don't need to
sort my points for that), and additionally faster (as I could use the
barycentric coordinate).

Regards Hartmut
---------------
http://boost-spirit.com


Geometry list run by mateusz at loskot.net