Table of Contents

Method GetNormals

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetNormals(IExplicitShape<int>, GridMap<int>, bool)

Gets the normals for the given shape.

public override IEnumerable<Vector3> GetNormals(IExplicitShape<int> shape, GridMap<int> map, bool flip)

Parameters

shape IExplicitShape<int>

The shape for which to return the normals of.

map GridMap<int>
flip bool

Whether normals should be flipped or not.

Returns

IEnumerable<Vector3>

Remarks

implement

Override this method to support 1D grids.

GetNormals(IExplicitShape<GridPoint2>, GridMap<GridPoint2>, bool)

Gets the normals for the given shape.

public override IEnumerable<Vector3> GetNormals(IExplicitShape<GridPoint2> explicitShape, GridMap<GridPoint2> gridMap, bool flip)

Parameters

explicitShape IExplicitShape<GridPoint2>
gridMap GridMap<GridPoint2>

The grid map to be used to calculate normals.

flip bool

Whether normals should be flipped or not.

Returns

IEnumerable<Vector3>

Remarks

implement

Override this method to support 1D grids.

GetNormals(IExplicitShape<GridPoint3>, GridMap<GridPoint3>, bool)

Gets the normals for the given shape.

public override IEnumerable<Vector3> GetNormals(IExplicitShape<GridPoint3> explicitShape, GridMap<GridPoint3> gridMap, bool flip)

Parameters

explicitShape IExplicitShape<GridPoint3>
gridMap GridMap<GridPoint3>

The grid map to be used to calculate normals.

flip bool

Whether normals should be flipped or not.

Returns

IEnumerable<Vector3>

Remarks

implement

Override this method to support 1D grids.