Version: 2020.2
言語: 日本語
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);

パラメーター

rect Rectangle to check.
p1 Line segment point 1.
p2 Line segment point 2.

戻り値

bool True if line segment overlaps rectangle. False otherwise.

説明

Check if a line segment overlaps a rectangle.