Method GetNormals
GetNormals(IExplicitShape<int>, GridMap<int>, bool)
Gets the normals for the given shape.
public virtual IEnumerable<Vector3> GetNormals(IExplicitShape<int> shape, GridMap<int> gridMap, bool flip)
Parameters
shapeIExplicitShape<int>The shape for which to return the normals of.
gridMapGridMap<int>The grid map to be used to calculate normals.
flipboolWhether normals should be flipped or not.
Returns
Remarks
implement
Override this method to support 1D grids.
GetNormals(IExplicitShape<GridPoint2>, GridMap<GridPoint2>, bool)
Gets the normals for the given shape.
public virtual IEnumerable<Vector3> GetNormals(IExplicitShape<GridPoint2> shape, GridMap<GridPoint2> gridMap, bool flip)
Parameters
shapeIExplicitShape<GridPoint2>The shape for which to return the normals of.
gridMapGridMap<GridPoint2>The grid map to be used to calculate normals.
flipboolWhether normals should be flipped or not.
Returns
Remarks
implement
Override this method to support 1D grids.
GetNormals(IExplicitShape<GridPoint3>, GridMap<GridPoint3>, bool)
Gets the normals for the given shape.
public virtual IEnumerable<Vector3> GetNormals(IExplicitShape<GridPoint3> shape, GridMap<GridPoint3> gridMap, bool flip)
Parameters
shapeIExplicitShape<GridPoint3>The shape for which to return the normals of.
gridMapGridMap<GridPoint3>The grid map to be used to calculate normals.
flipboolWhether normals should be flipped or not.
Returns
Remarks
implement
Override this method to support 1D grids.