Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Hexagon

Index

Constructors

constructor

  • Returns Hexagon

Properties

center

center: Vec2f

center point in Vec2 coordinate system

returns

radius

radius: number
returns

Methods

contains

  • contains(point: Vec2f): boolean
  • Parameters

    Returns boolean

free

  • free(): void
  • Returns void

list_points

  • list_points(): any[]
  • Generates a list of point in the Axial coordinate system that build up this hexagon grid.

    Returns any[]

    list of tuples of [q, r] integer coordinates.

with_center

  • Parameters

    Returns Hexagon

with_offset

  • Parameters

    Returns Hexagon

with_radius

  • with_radius(radius: number): Hexagon
  • Parameters

    • radius: number

    Returns Hexagon

Static from_radius

  • from_radius(radius: number): Hexagon
  • Parameters

    • radius: number

    Returns Hexagon

Legend

  • Constructor
  • Property
  • Method
  • Static method

Generated using TypeDoc