Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TriangularGrid

Hierarchy

  • TriangularGrid

Implements

Index

Constructors

constructor

Properties

angle

angle: Float = -60

orientation

orientation: boolean

radius

radius: Float

scale

scale: Float

scaleY

scaleY: Float = -1

tileTypes

tileTypes: TileType = TileType.Variable

tiles

toPoint

toPoint: function

Type declaration

toTile

toTile: function

Type declaration

x

y

Static shapes

shapes: Shape[] = [Shape.Hexagonal, Shape.Rhombus, Shape.Triangular]

Methods

bounds

center

getTileType

Private hexagonalShape

position

Private rhombus

tile

Private triangle

vertices

  • vertices(orientation?: undefined | true | false, scale?: Float, tileType?: Integer): Float2[]