Skip to main content

hexagon_core 1.0.0-beta.1 copy "hexagon_core: ^1.0.0-beta.1" to clipboard
hexagon_core: ^1.0.0-beta.1 copied to clipboard

Pure Dart hexagonal grid math: axial, cube, offset and doubled coordinates, pixel layouts, map shapes, pathfinding, reachability and field of view.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add hexagon_core

With Flutter:

 $ flutter pub add hexagon_core

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  hexagon_core: ^1.0.0-beta.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:hexagon_core/hexagon_core.dart';
0
likes
150
points
56
downloads

Documentation

API reference

Publisher

verified publisherorlik.dev

Weekly Downloads

Pure Dart hexagonal grid math: axial, cube, offset and doubled coordinates, pixel layouts, map shapes, pathfinding, reachability and field of view.

Topics

#hexagon #grid #game #pathfinding #geometry

License

MIT (license)

More

Packages that depend on hexagon_core