Method AnchorPivotVertical
AnchorPivotVertical(IMap<Vector3, GridPoint3>, IExplicitShape<GridPoint3>, Func<GridPoint3, Vector3>, VerticalAlignment)
It returns a Map that translate in such a way that it is aligned vertically according to the given alignment. This is different to the normal AlignGrid methods, since this one take in account the pivot used in the cell.
public static IMap<Vector3, GridPoint3> AnchorPivotVertical(this IMap<Vector3, GridPoint3> map, IExplicitShape<GridPoint3> shape, Func<GridPoint3, Vector3> cellSize, VerticalAlignment alignment)
Parameters
map
IMap<Vector3, GridPoint3>Base map where you apply this call.
shape
IExplicitShape<GridPoint3>Shape used in the map.
cellSize
Func<GridPoint3, Vector3>This function is used to calculate the size of a cell.
alignment
VerticalAlignmentType of alignment to apply.