Click or drag to resize

Map3DExtensionsGetLineTPoint 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 IMap3D<TPoint> map,
	TPoint p1,
	TPoint p2
)
where TPoint : Object, IGridPoint<TPoint>, IVectorPoint<TPoint>

Parameters

map
Type: Gamelogic.GridsIMap3DTPoint
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 IMap3DTPoint. 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