segmentIntersectionSegment method
Calculate the intersection point of two segments
segment1 first segment of calculation Segment
segment2 second segment of calculation Segment
Returns intersection point Point
Example:
// Calculate intersection point
Point intersection = GeometryUtils.segmentIntersectionSegment(segment1, segment2);
print("Intersection point: (${intersection.x.toStringAsFixed(2)}, ${intersection.y.toStringAsFixed(2)})");
Implementation
Point segmentIntersectionSegment(Segment segment1, Segment segment2) {
final _segmentIntersectionSegmentFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
PointNative Function(SegmentNative, SegmentNative),
PointNative Function(SegmentNative, SegmentNative)
>('navigine_sdk_flutter_GeometryUtils_segmentIntersectionSegment__Segment1_Segment2'));
final __resultHandle = _segmentIntersectionSegmentFfi(SegmentImpl.toNative(segment1), SegmentImpl.toNative(segment2));
final _result = PointImpl.fromNative(__resultHandle);
return _result;
}