Point set functions

  • Thread starter Thread starter Paul H
  • Start date Start date
P

Paul H

Does anybody know if there are any .net classes for doing functions
that deal with point sets?

Specifically I am looking for functions that will:
1: find the minimum size circle that will enclose a set of points
2: given 3 points determine if a fourth point is contained in the
triangle defined by the first three.

If these functions are not in .net where could I find a resource so I
could code them myself?
 
Paul H said:
Does anybody know if there are any .net classes for doing functions
that deal with point sets?

Specifically I am looking for functions that will:
1: find the minimum size circle that will enclose a set of points
2: given 3 points determine if a fourth point is contained in the
triangle defined by the first three.

If these functions are not in .net where could I find a resource so I
could code them myself?

Have a look at the GraphicsPath and Region classes. They may well
contain everything you need.
 
As far as I know, there is nothing built in to do #1 (there is for a
rectangle - GetBounds of a Region), but for #2, look at the IsVisible method
of the Region.
 
Back
Top