C# Class Krypton.Common.BoundingRect

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

Méthodes publiques

Свойство Type Description
Max Vector2
Min Vector2

Méthodes publiques

Méthode 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

Méthode Description
BoundingRect ( ) : System

Method Details

BoundingRect() public méthode

public BoundingRect ( Vector2 min, Vector2 max ) : System
min Vector2
max Vector2
Résultat System

BoundingRect() public méthode

public BoundingRect ( float x, float y, float width, float height ) : System
x float
y float
width float
height float
Résultat System

Contains() public méthode

public Contains ( BoundingRect rect ) : bool
rect BoundingRect
Résultat bool

Contains() public méthode

public Contains ( Vector2 vector ) : bool
vector Vector2
Résultat bool

Contains() public méthode

public Contains ( float x, float y ) : bool
x float
y float
Résultat bool

Contains() public méthode

public Contains ( BoundingRect &rect, bool &result ) : void
rect BoundingRect
result bool
Résultat void

Contains() public méthode

public Contains ( Vector2 &rect, bool &result ) : void
rect Vector2
result bool
Résultat void

Equals() public méthode

public Equals ( BoundingRect other ) : bool
other BoundingRect
Résultat bool

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

Intersect() public static méthode

public static Intersect ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
rect1 BoundingRect
rect2 BoundingRect
Résultat BoundingRect

Intersect() public static méthode

public static Intersect ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
rect1 BoundingRect
rect2 BoundingRect
result BoundingRect
Résultat void

Intersects() public méthode

public Intersects ( BoundingRect rect ) : bool
rect BoundingRect
Résultat bool

Intersects() public méthode

public Intersects ( BoundingRect &rect, bool &result ) : void
rect BoundingRect
result bool
Résultat void

Union() public static méthode

public static Union ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
rect1 BoundingRect
rect2 BoundingRect
Résultat BoundingRect

Union() public static méthode

public static Union ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
rect1 BoundingRect
rect2 BoundingRect
result BoundingRect
Résultat void

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

Max public_oe property

public Vector2 Max
Résultat Vector2

Min public_oe property

public Vector2 Min
Résultat Vector2