Table of Contents

Method GetVectorLine

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetVectorLine(GridPoint3)

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

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

Parameters

direction GridPoint3

The direction of the returned line.

Returns

IMap<GridPoint3, GridPoint3>

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).