C# Class Sharpex2D.Math.Rectangle

Afficher le fichier Open project: ThuCommix/Sharpex2D Class Usage Examples

Méthodes publiques

Méthode Description
Contains ( Rectangle value ) : bool

Determines whether this instance contains the specified rectangle.

Contains ( Vector2 vector ) : bool

Determines whether this instance contains the specified vector.

Intersect ( Rectangle rectangle ) : Rectangle

Intersects the specified rectangle.

Intersects ( Rectangle rectangle ) : bool

Intersectses the specified rectangle.

Rectangle ( Vector2 a, Vector2 b ) : System

Initializes a new instance of the Rectangle struct.

Rectangle ( float x, float y, float width, float height ) : System

Initializes a new instance of the Rectangle struct.

ToString ( ) : string

Converts the Rectangle to a string.

operator ( ) : Rectangle

Implements the operator *.

Method Details

Contains() public méthode

Determines whether this instance contains the specified rectangle.
public Contains ( Rectangle value ) : bool
value Rectangle The value.
Résultat bool

Contains() public méthode

Determines whether this instance contains the specified vector.
public Contains ( Vector2 vector ) : bool
vector Vector2 The vector.
Résultat bool

Intersect() public méthode

Intersects the specified rectangle.
public Intersect ( Rectangle rectangle ) : Rectangle
rectangle Rectangle The rectangle.
Résultat Rectangle

Intersects() public méthode

Intersectses the specified rectangle.
public Intersects ( Rectangle rectangle ) : bool
rectangle Rectangle The rectangle.
Résultat bool

Rectangle() public méthode

Initializes a new instance of the Rectangle struct.
public Rectangle ( Vector2 a, Vector2 b ) : System
a Vector2 The first vector.
b Vector2 The second vector.
Résultat System

Rectangle() public méthode

Initializes a new instance of the Rectangle struct.
public Rectangle ( float x, float y, float width, float height ) : System
x float The x.
y float The y.
width float The width.
height float The height.
Résultat System

ToString() public méthode

Converts the Rectangle to a string.
public ToString ( ) : string
Résultat string

operator() public static méthode

Implements the operator *.
public static operator ( ) : Rectangle
Résultat Rectangle