divisionRatioBySegment static method

double divisionRatioBySegment(
  1. Segment segment1,
  2. Segment segment2
)

@brief Calculate the division ratio of a segment by a given segment(if intersects) @param segment1 first segment of calculation @see Segment "Segment" @param segment2 second segment of calculation @see Segment "Segment" @return division ratio

Dart code snippet: @snippet geometry_utils_example.dart dart_GeometryUtils_divisionRatioBySegment

Implementation

static double divisionRatioBySegment(Segment segment1, Segment segment2) => $prototype.divisionRatioBySegment(segment1, segment2);