Table of Contents

Method GetVectorLine

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetVectorLine(GridPoint2)

Gets the map that represents a line through this point in the given direction.

public static IMap<GridPoint2, GridPoint2> GetVectorLine(GridPoint2 direction)

Parameters

direction GridPoint2

The direction of the returned line.

Returns

IMap<GridPoint2, GridPoint2>

Remarks

The vector line of a point p in the direction d is the set of points given by p + d*n, where n is over all integers. The map returned by this function can generate (a portion) of this line by repeatedly applying it on the point (either in the forward or backward direction).