Class Polygon2dBoxTree
tree of Oriented Boxes (OBB) for a Polygon2d.
Construction is sequential, ie pairs of segments are merged into boxes, then pairs of boxes, and so on
[TODO] is this the best strategy? is there maybe some kind of sorting/sweepline algo?
[TODO] would it make more sense to have more than just 2 segments at lowest level?
Inheritance
Polygon2dBoxTree
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public class Polygon2dBoxTree
Constructors
Polygon2dBoxTree(Polygon2d)
Declaration
public Polygon2dBoxTree(Polygon2d poly)
Parameters
Fields
Polygon
Declaration
Field Value
Methods
Distance(Vector2d)
Declaration
public double Distance(Vector2d pt)
Parameters
Returns
DistanceSquared(Vector2d)
Declaration
public double DistanceSquared(Vector2d pt)
Parameters
Returns
NearestPoint(Vector2d)
Declaration
public Vector2d NearestPoint(Vector2d pt)
Parameters
Returns
SquaredDistance(Vector2d, out Int32, out Double, Double)
Declaration
public double SquaredDistance(Vector2d pt, out int iNearSeg, out double fNearSegT, double max_dist = 1.7976931348623157E+308)
Parameters
Returns