C# 클래스 RSTUtils.Extensions.RectExtensions

파일 보기 프로젝트 열기: KSP-RO/TacLifeSupport

공개 메소드들

메소드 설명
ClampInsideScreen ( this value ) : Rect

Clamps the rectangle inside the screen region.

ClampToScreen ( this value, float margin = 25.0f ) : Rect

Clamps the rectangle into the screen region by the specified margin.

MouseIsOver ( this value ) : bool

Returns whether the mouse is within the coordinates of this rectangle.

Translate ( this value, Rect rectangle ) : Rect

메소드 상세

ClampInsideScreen() 공개 정적인 메소드

Clamps the rectangle inside the screen region.
public static ClampInsideScreen ( this value ) : Rect
value this
리턴 UnityEngine.Rect

ClampToScreen() 공개 정적인 메소드

Clamps the rectangle into the screen region by the specified margin.
public static ClampToScreen ( this value, float margin = 25.0f ) : Rect
value this
margin float
리턴 UnityEngine.Rect

MouseIsOver() 공개 정적인 메소드

Returns whether the mouse is within the coordinates of this rectangle.
public static MouseIsOver ( this value ) : bool
value this
리턴 bool

Translate() 공개 정적인 메소드

public static Translate ( this value, Rect rectangle ) : Rect
value this
rectangle UnityEngine.Rect
리턴 UnityEngine.Rect