Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: Vertex(Hex, int)

Declaration

public Vertex(
    Hex hex,
    int fullPos
)

Summary

Constructs a Floret.Vertex from any position along the perimeter of hex.

Parameters

Hexhex Hexagon to compute vertex from.
intfullPos Position of the vertex counting clockwise from the vertex that is above the hexagon’s top edge. Note that numbers that are 1 modulo 3 yield vertices of the hexagon.

Remarks

Note that this constructor cannot construct a vertex that is at the center of a hexagon. Use Vertex(Hex, Floret.Vertex.Position) for that.