CollisionGrid2d Class
A fast geometry collission detection class.
Note that the extents of the to-be-added
obstacle geometry must be known in advance
to use this structure.
Public Class CollisionGrid2d
This language is not supported or no code example is available.
public class CollisionGrid2d
This language is not supported or no code example is available.
public ref class CollisionGrid2d
This language is not supported or no code example is available.
public class CollisionGrid2d
This language is not supported or no code example is available.
|
Name
|
Description
|
|
AddedPolys
|
The polys added so far.
|
|
PolyCount
|
The number of successfully added polygons.
Note that empty polygons are ignored,
but single-point-polygons are added.
|
Top
|
Name
|
Description
|
|
Add(Poly2d)
|
Add a reference to a poly to the grid. The poly may
be open or closed, or a single point.
Empty polys are ignored.
Open polys are treated as thin walls.
Closed CCW polys are treated
as obstacles (filled contours).
Closed CW polys are treated as
holes.
Note: modifying the added poly results in undefined behaviour!
That is: to maximize performance, polys are NOT copied!
|
|
FromPolys(IEnumerable<Poly2d>)
|
Skapar en CollisionGrid2d utifrån givna polysar. Notera att polysarna tolkas som "solider" om de är CCW, och hål om de är CW!
Även öppna polys stöds. Men indata får ju vara lite snygg annars går det inte!
|
|
Overlaps(Poly2d)
|
Determines whether a given test poly overlaps
any of the so-far added polys.
Add() and Overlaps() calls may be interleaved.
Overlaps() assumes that
a) the test poly is CCW if it is closed
b) the added hole polys lie inside contour polys.
|
Top
IGS.Genamo.CollisionGrid2d
.NET Framework
Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8