Version: 2022.1
언어: 한국어
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.