C# Class Poly2Tri.Rectangle

Mostrar archivo Open project: Syncaidius/Poly2Tri

Public Properties

Property Type Description
Empty Rectangle
MaxX double
MaxY double
MinX double
MinY double

Public Methods

Method 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

Method Description
operator ( ) : bool

Method Details

Contains() public method

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

Contains() public method

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

Contains() public method

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

Contains() public method

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.
return void

Contains() public method

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.
return void

Encapsulate() public method

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

Encapsulate() public method

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

Equals() public method

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

Equals() public method

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

GetHashCode() public method

Returns a hash code for this instance.
public GetHashCode ( ) : int
return int

Intersect() public static method

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.
return Rectangle

Intersect() public static method

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.
return void

Intersects() public method

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

Intersects() public method

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.
return void

Rectangle() public method

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.
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Empty public_oe static_oe property

An empty rectangle.
public static Rectangle Empty
return Rectangle

MaxX public_oe property

public double MaxX
return double

MaxY public_oe property

public double MaxY
return double

MinX public_oe property

public double MinX
return double

MinY public_oe property

public double MinY
return double