C# 클래스 Poly2Tri.Rectangle

파일 보기 프로젝트 열기: Syncaidius/Poly2Tri

공개 프로퍼티들

프로퍼티 타입 설명
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