segmentIntersectionSegment static 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
static Point segmentIntersectionSegment(Segment segment1, Segment segment2) => $prototype.segmentIntersectionSegment(segment1, segment2);