Table of Contents

Method GetPoint

Namespace
Pinwheel.Vista.Geometric
Assembly
Pinwheel.Vista.Runtime.dll

GetPoint(int)

Gets one vertex of the hexagon.

public Vector2 GetPoint(int index)

Parameters

index int

The zero-based vertex index in the range 0 to 5.

Returns

Vector2

The requested vertex position.

Remarks

Vertex order advances in 60-degree steps starting from 0 degrees for Pinwheel.Vista.Geometric.Hexagon2D.Orientation.Right and -30 degrees for Pinwheel.Vista.Geometric.Hexagon2D.Orientation.Top.