Class HexLayout

java.lang.Object
com.arbergashi.charts.internal.HexLayout

public final class HexLayout extends Object
Helper for hexagon geometry. Precomputes the six corner offsets for a hex of a given radius. This class is immutable and safe to reuse between frames.
Since:
2026-01-01
Version:
1.0.0
Author:
Arber Gashi
  • Method Details

    • create

      public static HexLayout create(double radius)
    • getOffsetsX

      public double[] getOffsetsX()
    • getOffsetsY

      public double[] getOffsetsY()
    • getRadius

      public double getRadius()