Experimental: this API is experimental and might be changed or removed in the future.

RectUtils.IntersectsSegment

Switch to Manual
public static bool IntersectsSegment (Rect rect, Vector2 p1, Vector2 p2);

Parameters

rect要检查的矩形。
p1线段点 1。
p2线段点 2。

Returns

bool 如果线段与矩形重叠,则为 true;否则为 false。

Description

检查线段是否与矩形重叠。