Click or drag to resize

MapExtensionsGetLineTPoint Method

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

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static List<TPoint> GetLine<TPoint>(
	this IMap<TPoint> map,
	TPoint p1,
	TPoint p2
)
where TPoint : Object, IGridPoint<TPoint>, IVectorPoint<TPoint>

Parameters

map
Type: Gamelogic.GridsIMapTPoint
p1
Type: TPoint
p2
Type: TPoint

Type Parameters

TPoint

Return Value

Type: ListTPoint

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IMapTPoint. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also