C# Class Poly2Tri.Rectangle

Afficher le fichier Open project: Syncaidius/Poly2Tri

Méthodes publiques

Свойство Type Description
Empty Rectangle
MaxX double
MaxY double
MinX double
MinY double

Méthodes publiques

Méthode Description
Contains ( value ) : bool

Determines whether this rectangle entirely contains a specified rectangle.

Contains ( Poly2Tri.Vector2 vector2D ) : bool

Checks, if specified Vector2F is inside RectangleF.

Contains ( double x, double y ) : bool

Checks, if specified point is inside RectangleF.

Contains ( &value, bool &result ) : void

Determines whether this rectangle entirely contains a specified rectangle.

Contains ( Vector2 &value, bool &result ) : void

Determines whether this rectangle contains a specified Point.

Encapsulate ( p ) : void

Expands the rectangle as needed so that the given point falls within it's bounds.

Encapsulate ( Vector2 p ) : void

Expands the rectangle as needed so that the given point falls within it's bounds.

Equals ( &other ) : bool

Determines whether the specified RectangleF is equal to this instance.

Equals ( object obj ) : bool

Determines whether the specified System.Object is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

Intersect ( value1, value2 ) : Rectangle

Creates a rectangle defining the area where one rectangle overlaps with another rectangle.

Intersect ( &value1, &value2, &result ) : void

Creates a rectangle defining the area where one rectangle overlaps with another rectangle.

Intersects ( value ) : bool

Determines whether a specified rectangle intersects with this rectangle.

Intersects ( &value, bool &result ) : void

Determines whether a specified rectangle intersects with this rectangle.

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

Initializes a new instance of the RectangleF struct.

ToString ( ) : string

Private Methods

Méthode Description
operator ( ) : bool

Method Details

Contains() public méthode

Determines whether this rectangle entirely contains a specified rectangle.
public Contains ( value ) : bool
value The rectangle to evaluate.
Résultat bool

Contains() public méthode

Checks, if specified Vector2F is inside RectangleF.
public Contains ( Poly2Tri.Vector2 vector2D ) : bool
vector2D Poly2Tri.Vector2 Coordinate .
Résultat bool

Contains() public méthode

Checks, if specified point is inside RectangleF.
public Contains ( double x, double y ) : bool
x double X point coordinate.
y double Y point coordinate.
Résultat bool

Contains() public méthode

Determines whether this rectangle entirely contains a specified rectangle.
public Contains ( &value, bool &result ) : void
value The rectangle to evaluate.
result bool [OutAttribute] On exit, is true if this rectangle entirely contains the specified rectangle, or false if not.
Résultat void

Contains() public méthode

Determines whether this rectangle contains a specified Point.
public Contains ( Vector2 &value, bool &result ) : void
value Vector2 The Point to evaluate.
result bool [OutAttribute] true if the specified Point is contained within this rectangle; false otherwise.
Résultat void

Encapsulate() public méthode

Expands the rectangle as needed so that the given point falls within it's bounds.
public Encapsulate ( p ) : void
Résultat void

Encapsulate() public méthode

Expands the rectangle as needed so that the given point falls within it's bounds.
public Encapsulate ( Vector2 p ) : void
p Vector2
Résultat void

Equals() public méthode

Determines whether the specified RectangleF is equal to this instance.
public Equals ( &other ) : bool
other The to compare with this instance.
Résultat bool

Equals() public méthode

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Résultat bool

GetHashCode() public méthode

Returns a hash code for this instance.
public GetHashCode ( ) : int
Résultat int

Intersect() public static méthode

Creates a rectangle defining the area where one rectangle overlaps with another rectangle.
public static Intersect ( value1, value2 ) : Rectangle
value1 The first Rectangle to compare.
value2 The second Rectangle to compare.
Résultat Rectangle

Intersect() public static méthode

Creates a rectangle defining the area where one rectangle overlaps with another rectangle.
public static Intersect ( &value1, &value2, &result ) : void
value1 The first rectangle to compare.
value2 The second rectangle to compare.
result [OutAttribute] The area where the two first parameters overlap.
Résultat void

Intersects() public méthode

Determines whether a specified rectangle intersects with this rectangle.
public Intersects ( value ) : bool
value The rectangle to evaluate.
Résultat bool

Intersects() public méthode

Determines whether a specified rectangle intersects with this rectangle.
public Intersects ( &value, bool &result ) : void
value The rectangle to evaluate
result bool [OutAttribute] true if the specified rectangle intersects with this one; false otherwise.
Résultat void

Rectangle() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string

Property Details

Empty public_oe static_oe property

An empty rectangle.
public static Rectangle Empty
Résultat Rectangle

MaxX public_oe property

public double MaxX
Résultat double

MaxY public_oe property

public double MaxY
Résultat double

MinX public_oe property

public double MinX
Résultat double

MinY public_oe property

public double MinY
Résultat double