Table of Contents

Class MapExtensions

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

Extensions for IMap.

[Version(1, 10, 0)]
public static class MapExtensions
Inheritance
MapExtensions
Inherited Members

Methods

GetLine<TPoint>(IMap<TPoint>, TPoint, TPoint)

This method returns a list of grid points that form a straight line between the two given grid points.

public static List<TPoint> GetLine<TPoint>(this IMap<TPoint> map, TPoint p1, TPoint p2) where TPoint : IGridPoint<TPoint>, IVectorPoint<TPoint>

Parameters

map IMap<TPoint>
p1 TPoint
p2 TPoint

Returns

List<TPoint>

Type Parameters

TPoint