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
shape
IExplicitShape<int>The shape for which to return the normals of.
gridMap
GridMap<int>The grid map to be used to calculate normals.
flip
boolWhether 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
shape
IExplicitShape<GridPoint2>The shape for which to return the normals of.
gridMap
GridMap<GridPoint2>The grid map to be used to calculate normals.
flip
boolWhether 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
shape
IExplicitShape<GridPoint3>The shape for which to return the normals of.
gridMap
GridMap<GridPoint3>The grid map to be used to calculate normals.
flip
boolWhether normals should be flipped or not.
Returns
Remarks
implement
Override this method to support 1D grids.