Table of Contents

Struct Hexagon2D

Namespace
Pinwheel.Vista.Geometric
Assembly
Pinwheel.Vista.Runtime.dll
[Serializable]
public struct Hexagon2D
Inherited Members

Constructors

Hexagon2D(Vector2, float, Orientation)

Creates a regular hexagon from center, radius, and orientation.

Properties

center

Gets or sets the center of the hexagon.

orientation

Gets or sets the orientation used to place the first vertex.

radius

Gets or sets the circumradius of the hexagon.

Methods

GetHashCode()

Returns a hash code derived from center, radius, and orientation.

GetPoint(int)

Gets one vertex of the hexagon.

GetPoints(Vector2[], int)

Writes all six vertices into a caller-provided array.

GetSegment(int)

Gets one edge segment of the hexagon.

GetSegments(Line2D[], int)

Writes all six edge segments into a caller-provided array.