C# 클래스 Sparrow.Geom.Rectangle

파일 보기 프로젝트 열기: fmotagarcia/sparrow-sharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Height float
Width float
X float
Y float

공개 메소드들

메소드 설명
Contains ( Point point ) : bool
Contains ( Rectangle rectangle ) : bool
Contains ( float x, float y ) : bool
Copy ( ) : Rectangle
CopyFromRectangle ( Rectangle rectangle ) : void
Empty ( ) : void
Inflate ( float dx, float dy ) : void
Intersection ( Rectangle rectangle ) : Rectangle

Returns the intersecting rectangle

Intersects ( Rectangle rectangle ) : bool
IsEmpty ( ) : bool
IsEqual ( Rectangle other ) : bool

Determines whether this instance is equal the specified other with a small Epsilon error margin.

Normalize ( ) : void

Inverts X or Y if they are negative

Rectangle ( float x = 0.0f, float y = 0.0f, float width = 0.0f, float height = 0.0f ) : System
Union ( Rectangle rectangle ) : Rectangle

Returns a rectangle that encompasses both rectangles

메소드 상세

Contains() 공개 메소드

public Contains ( Point point ) : bool
point Point
리턴 bool

Contains() 공개 메소드

public Contains ( Rectangle rectangle ) : bool
rectangle Rectangle
리턴 bool

Contains() 공개 메소드

public Contains ( float x, float y ) : bool
x float
y float
리턴 bool

Copy() 공개 메소드

public Copy ( ) : Rectangle
리턴 Rectangle

CopyFromRectangle() 공개 메소드

public CopyFromRectangle ( Rectangle rectangle ) : void
rectangle Rectangle
리턴 void

Empty() 공개 메소드

public Empty ( ) : void
리턴 void

Inflate() 공개 메소드

public Inflate ( float dx, float dy ) : void
dx float
dy float
리턴 void

Intersection() 공개 메소드

Returns the intersecting rectangle
public Intersection ( Rectangle rectangle ) : Rectangle
rectangle Rectangle
리턴 Rectangle

Intersects() 공개 메소드

public Intersects ( Rectangle rectangle ) : bool
rectangle Rectangle
리턴 bool

IsEmpty() 공개 메소드

public IsEmpty ( ) : bool
리턴 bool

IsEqual() 공개 메소드

Determines whether this instance is equal the specified other with a small Epsilon error margin.
public IsEqual ( Rectangle other ) : bool
other Rectangle
리턴 bool

Normalize() 공개 메소드

Inverts X or Y if they are negative
public Normalize ( ) : void
리턴 void

Rectangle() 공개 메소드

public Rectangle ( float x = 0.0f, float y = 0.0f, float width = 0.0f, float height = 0.0f ) : System
x float
y float
width float
height float
리턴 System

Union() 공개 메소드

Returns a rectangle that encompasses both rectangles
public Union ( Rectangle rectangle ) : Rectangle
rectangle Rectangle
리턴 Rectangle

프로퍼티 상세

Height 공개적으로 프로퍼티

public float Height
리턴 float

Width 공개적으로 프로퍼티

public float Width
리턴 float

X 공개적으로 프로퍼티

public float X
리턴 float

Y 공개적으로 프로퍼티

public float Y
리턴 float