C# Class Krypton.Common.BoundingRect

Much like Rectangle, but stored as two Vector2s
Show file Open project: lucas-jones/MilkShake-old Class Usage Examples

Public Properties

Property Type Description
Max Vector2
Min Vector2

Public Methods

Method Description
BoundingRect ( Vector2 min, Vector2 max ) : System
BoundingRect ( float x, float y, float width, float height ) : System
Contains ( BoundingRect rect ) : bool
Contains ( Vector2 vector ) : bool
Contains ( float x, float y ) : bool
Contains ( BoundingRect &rect, bool &result ) : void
Contains ( Vector2 &rect, bool &result ) : void
Equals ( BoundingRect other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Intersect ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
Intersect ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
Intersects ( BoundingRect rect ) : bool
Intersects ( BoundingRect &rect, bool &result ) : void
Union ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
Union ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
operator ( ) : bool

Private Methods

Method Description
BoundingRect ( ) : System

Method Details

BoundingRect() public method

public BoundingRect ( Vector2 min, Vector2 max ) : System
min Vector2
max Vector2
return System

BoundingRect() public method

public BoundingRect ( float x, float y, float width, float height ) : System
x float
y float
width float
height float
return System

Contains() public method

public Contains ( BoundingRect rect ) : bool
rect BoundingRect
return bool

Contains() public method

public Contains ( Vector2 vector ) : bool
vector Vector2
return bool

Contains() public method

public Contains ( float x, float y ) : bool
x float
y float
return bool

Contains() public method

public Contains ( BoundingRect &rect, bool &result ) : void
rect BoundingRect
result bool
return void

Contains() public method

public Contains ( Vector2 &rect, bool &result ) : void
rect Vector2
result bool
return void

Equals() public method

public Equals ( BoundingRect other ) : bool
other BoundingRect
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Intersect() public static method

public static Intersect ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
rect1 BoundingRect
rect2 BoundingRect
return BoundingRect

Intersect() public static method

public static Intersect ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
rect1 BoundingRect
rect2 BoundingRect
result BoundingRect
return void

Intersects() public method

public Intersects ( BoundingRect rect ) : bool
rect BoundingRect
return bool

Intersects() public method

public Intersects ( BoundingRect &rect, bool &result ) : void
rect BoundingRect
result bool
return void

Union() public static method

public static Union ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
rect1 BoundingRect
rect2 BoundingRect
return BoundingRect

Union() public static method

public static Union ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
rect1 BoundingRect
rect2 BoundingRect
result BoundingRect
return void

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Max public property

public Vector2 Max
return Vector2

Min public property

public Vector2 Min
return Vector2