DemiLib
A collection of Demigiant's utility libraries for Unity (https://github.com/Demigiant/demilib)
DG.DeUtils.DeRectUtils Class Reference

Utils for structs (since they can't directly work with extension methods) More...

Static Public Member Functions

static Rect Add (Rect a, Rect b)
 Adds one rect into another, and returns the resulting a More...
 
static bool Includes (Rect a, Rect b)
 Returns TRUE if the first rect fully includes the second one More...
 
static Rect Shift (Rect rect, float x, float y, float width, float height)
 Modifies and returns the given Rect, with its values shifted according the the given parameters More...
 

Detailed Description

Utils for structs (since they can't directly work with extension methods)

Member Function Documentation

static Rect DG.DeUtils.DeRectUtils.Add ( Rect  a,
Rect  b 
)
static

Adds one rect into another, and returns the resulting a

static bool DG.DeUtils.DeRectUtils.Includes ( Rect  a,
Rect  b 
)
static

Returns TRUE if the first rect fully includes the second one

static Rect DG.DeUtils.DeRectUtils.Shift ( Rect  rect,
float  x,
float  y,
float  width,
float  height 
)
static

Modifies and returns the given Rect, with its values shifted according the the given parameters


The documentation for this class was generated from the following file: