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

RectUtils.IntersectsSegment

マニュアルに切り替える
public static bool IntersectsSegment (Rect rect, Vector2 p1, Vector2 p2);

パラメーター

rectRectangle to check.
p1Line segment point 1.
p2Line segment point 2.

戻り値

bool True if line segment overlaps rectangle. False otherwise.

説明

Check if a line segment overlaps a rectangle.