Util
interludesoftware.tick¶
Interlude.Tick¶
Util Class¶
Inheritance System.Object → Util
Methods¶
Util.Floor(this Rect) Method¶
Returns a copy of rect with all components floored to the nearest integer.
Parameters¶
rect UnityEngine.Rect
Returns¶
Util.GetHalfHeight(this Rect) Method¶
Returns half the height of rect.
Parameters¶
rect UnityEngine.Rect
Returns¶
Util.GetHalfWidth(this Rect) Method¶
Returns half the width of rect.
Parameters¶
rect UnityEngine.Rect
Returns¶
Util.Grow(this Rect, Vector2) Method¶
Parameters¶
rect UnityEngine.Rect
size UnityEngine.Vector2
Returns¶
Util.Offset(this Rect, Vector2) Method¶
Parameters¶
rect UnityEngine.Rect
offset UnityEngine.Vector2
Returns¶
Util.PushRectInsideRect(this Rect, Rect) Method¶
Translates rect so it sits inside other. Dimensions are preserved; only position changes. If rect is larger than other on an axis, the output is clamped against the min edge on that axis (it will still extend past the max edge).
Parameters¶
rect UnityEngine.Rect
other UnityEngine.Rect