C# Класс Poly2Tri.Rectangle

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Empty Rectangle
MaxX double
MaxY double
MinX double
MinY double

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
operator ( ) : bool

Описание методов

Contains() публичный Метод

Determines whether this rectangle entirely contains a specified rectangle.
public Contains ( value ) : bool
value The rectangle to evaluate.
Результат bool

Contains() публичный Метод

Checks, if specified Vector2F is inside RectangleF.
public Contains ( Poly2Tri.Vector2 vector2D ) : bool
vector2D Poly2Tri.Vector2 Coordinate .
Результат bool

Contains() публичный Метод

Checks, if specified point is inside RectangleF.
public Contains ( double x, double y ) : bool
x double X point coordinate.
y double Y point coordinate.
Результат bool

Contains() публичный Метод

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.
Результат void

Contains() публичный Метод

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.
Результат void

Encapsulate() публичный Метод

Expands the rectangle as needed so that the given point falls within it's bounds.
public Encapsulate ( p ) : void
Результат void

Encapsulate() публичный Метод

Expands the rectangle as needed so that the given point falls within it's bounds.
public Encapsulate ( Vector2 p ) : void
p Vector2
Результат void

Equals() публичный Метод

Determines whether the specified RectangleF is equal to this instance.
public Equals ( &other ) : bool
other The to compare with this instance.
Результат bool

Equals() публичный Метод

Determines whether the specified System.Object is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Результат bool

GetHashCode() публичный Метод

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

Intersect() публичный статический Метод

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.
Результат Rectangle

Intersect() публичный статический Метод

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.
Результат void

Intersects() публичный Метод

Determines whether a specified rectangle intersects with this rectangle.
public Intersects ( value ) : bool
value The rectangle to evaluate.
Результат bool

Intersects() публичный Метод

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.
Результат void

Rectangle() публичный Метод

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.
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string

Описание свойств

Empty публичное статическое свойство

An empty rectangle.
public static Rectangle Empty
Результат Rectangle

MaxX публичное свойство

public double MaxX
Результат double

MaxY публичное свойство

public double MaxY
Результат double

MinX публичное свойство

public double MinX
Результат double

MinY публичное свойство

public double MinY
Результат double