Table of Contents

Method Segment

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Segment(int)

Makes a new shape that is a contiguous interval of the given size, starting at 0 and continuing in the positive direction.

public static IExplicitShape<int> Segment(int size)

Parameters

size int

The size of the segment to make.

Returns

IExplicitShape<int>

Examples

var segment = ExplicitShape.Segment(4);
//will contain the points {0, 1, 2, 3}