Table of Contents

Class PointyTriHexagonWrapper

Namespace
Gamelogic.Grids
Assembly
Assembly-CSharp.dll

A wrapper that wraps tri points over a hexagon, similar to the way hex points are wrapped in this example:

http://www.redblobgames.com/grids/hexagons/

Since version 1.7

public class PointyTriHexagonWrapper : IPointWrapper<PointyTriPoint>
Inheritance
PointyTriHexagonWrapper
Implements
Inherited Members
Extension Methods

Constructors

PointyTriHexagonWrapper(int)

public PointyTriHexagonWrapper(int side)

Parameters

side int

Methods

Wrap(PointyTriPoint)

Returns a new point, that corresponds to the wrapped version of the give point.

public PointyTriPoint Wrap(PointyTriPoint point)

Parameters

point PointyTriPoint

Returns

PointyTriPoint