C# Class Sparrow.Geom.Rectangle

Afficher le fichier Open project: fmotagarcia/sparrow-sharp Class Usage Examples

Méthodes publiques

Свойство Type Description
Height float
Width float
X float
Y float

Méthodes publiques

Méthode Description
Contains ( Point point ) : bool
Contains ( Rectangle rectangle ) : bool
Contains ( float x, float y ) : bool
Copy ( ) : Rectangle
CopyFromRectangle ( Rectangle rectangle ) : void
Empty ( ) : void
Inflate ( float dx, float dy ) : void
Intersection ( Rectangle rectangle ) : Rectangle

Returns the intersecting rectangle

Intersects ( Rectangle rectangle ) : bool
IsEmpty ( ) : bool
IsEqual ( Rectangle other ) : bool

Determines whether this instance is equal the specified other with a small Epsilon error margin.

Normalize ( ) : void

Inverts X or Y if they are negative

Rectangle ( float x = 0.0f, float y = 0.0f, float width = 0.0f, float height = 0.0f ) : System
Union ( Rectangle rectangle ) : Rectangle

Returns a rectangle that encompasses both rectangles

Method Details

Contains() public méthode

public Contains ( Point point ) : bool
point Point
Résultat bool

Contains() public méthode

public Contains ( Rectangle rectangle ) : bool
rectangle Rectangle
Résultat bool

Contains() public méthode

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

Copy() public méthode

public Copy ( ) : Rectangle
Résultat Rectangle

CopyFromRectangle() public méthode

public CopyFromRectangle ( Rectangle rectangle ) : void
rectangle Rectangle
Résultat void

Empty() public méthode

public Empty ( ) : void
Résultat void

Inflate() public méthode

public Inflate ( float dx, float dy ) : void
dx float
dy float
Résultat void

Intersection() public méthode

Returns the intersecting rectangle
public Intersection ( Rectangle rectangle ) : Rectangle
rectangle Rectangle
Résultat Rectangle

Intersects() public méthode

public Intersects ( Rectangle rectangle ) : bool
rectangle Rectangle
Résultat bool

IsEmpty() public méthode

public IsEmpty ( ) : bool
Résultat bool

IsEqual() public méthode

Determines whether this instance is equal the specified other with a small Epsilon error margin.
public IsEqual ( Rectangle other ) : bool
other Rectangle
Résultat bool

Normalize() public méthode

Inverts X or Y if they are negative
public Normalize ( ) : void
Résultat void

Rectangle() public méthode

public Rectangle ( float x = 0.0f, float y = 0.0f, float width = 0.0f, float height = 0.0f ) : System
x float
y float
width float
height float
Résultat System

Union() public méthode

Returns a rectangle that encompasses both rectangles
public Union ( Rectangle rectangle ) : Rectangle
rectangle Rectangle
Résultat Rectangle

Property Details

Height public_oe property

public float Height
Résultat float

Width public_oe property

public float Width
Résultat float

X public_oe property

public float X
Résultat float

Y public_oe property

public float Y
Résultat float