exactEdgeLength method

  1. @override
double exactEdgeLength(
  1. BigInt edgeIndex,
  2. H3Units unit
)
override

Calculates exact length of a given unidirectional edge in units

Implementation

@override
double exactEdgeLength(BigInt edgeIndex, H3Units unit) {
  switch (unit) {
    case H3Units.m:
      return _h3c.exactEdgeLengthM(edgeIndex.toInt());
    case H3Units.km:
      return _h3c.exactEdgeLengthKm(edgeIndex.toInt());
    case H3Units.rad:
      return _h3c.exactEdgeLengthRads(edgeIndex.toInt());
  }
}