C# 클래스 Sharpex2D.Math.Rectangle

파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
Contains ( Rectangle value ) : bool

Determines whether this instance contains the specified rectangle.

Contains ( Vector2 vector ) : bool

Determines whether this instance contains the specified vector.

Intersect ( Rectangle rectangle ) : Rectangle

Intersects the specified rectangle.

Intersects ( Rectangle rectangle ) : bool

Intersectses the specified rectangle.

Rectangle ( Vector2 a, Vector2 b ) : System

Initializes a new instance of the Rectangle struct.

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

Initializes a new instance of the Rectangle struct.

ToString ( ) : string

Converts the Rectangle to a string.

operator ( ) : Rectangle

Implements the operator *.

메소드 상세

Contains() 공개 메소드

Determines whether this instance contains the specified rectangle.
public Contains ( Rectangle value ) : bool
value Rectangle The value.
리턴 bool

Contains() 공개 메소드

Determines whether this instance contains the specified vector.
public Contains ( Vector2 vector ) : bool
vector Vector2 The vector.
리턴 bool

Intersect() 공개 메소드

Intersects the specified rectangle.
public Intersect ( Rectangle rectangle ) : Rectangle
rectangle Rectangle The rectangle.
리턴 Rectangle

Intersects() 공개 메소드

Intersectses the specified rectangle.
public Intersects ( Rectangle rectangle ) : bool
rectangle Rectangle The rectangle.
리턴 bool

Rectangle() 공개 메소드

Initializes a new instance of the Rectangle struct.
public Rectangle ( Vector2 a, Vector2 b ) : System
a Vector2 The first vector.
b Vector2 The second vector.
리턴 System

Rectangle() 공개 메소드

Initializes a new instance of the Rectangle struct.
public Rectangle ( float x, float y, float width, float height ) : System
x float The x.
y float The y.
width float The width.
height float The height.
리턴 System

ToString() 공개 메소드

Converts the Rectangle to a string.
public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

Implements the operator *.
public static operator ( ) : Rectangle
리턴 Rectangle