C# 클래스 flxSharp.flxSharp.FlxRect

Stores a rectangle.
파일 보기 프로젝트 열기: jlorek/flxSharp 1 사용 예제들

공개 메소드들

메소드 설명
FlxRect ( float x, float y, float width, float height ) : System

Instantiate a new rectangle.

ToRectangle ( ) : Rectangle

Create a new Rectangle from this FlxRect.

copyFrom ( FlxRect rect ) : FlxRect

Helper function, just copies the values from the specified rectangle.

copyFromFlash ( object flashRect ) : FlxRect

Helper function, just copies the values from the specified Flash rectangle.

copyTo ( FlxRect rect ) : FlxRect

Helper function, just copies the values from this rectangle to the specified rectangle.

copyToFlash ( object flashRect ) : object

Helper function, just copies the values from this rectangle to the specified Flash rectangle.

make ( float x, float y, float width, float height ) : FlxRect

Instantiate a new rectangle. Protip: Values of the current instance are set, but nothing is created here.

overlaps ( FlxRect rect ) : System.Boolean

Checks to see if some FlxRect object overlaps this FlxRect object.

메소드 상세

FlxRect() 공개 메소드

Instantiate a new rectangle.
public FlxRect ( float x, float y, float width, float height ) : System
x float The X-coordinate of the rectangle in space.
y float The Y-coordinate of the rectangle in space.
width float Desired width of the rectangle.
height float Desired height of the rectangle.
리턴 System

ToRectangle() 공개 메소드

Create a new Rectangle from this FlxRect.
public ToRectangle ( ) : Rectangle
리턴 Microsoft.Xna.Framework.Rectangle

copyFrom() 공개 메소드

Helper function, just copies the values from the specified rectangle.
public copyFrom ( FlxRect rect ) : FlxRect
rect FlxRect Any FlxRect.
리턴 FlxRect

copyFromFlash() 공개 메소드

Helper function, just copies the values from the specified Flash rectangle.
public copyFromFlash ( object flashRect ) : FlxRect
flashRect object Any Rectangle.
리턴 FlxRect

copyTo() 공개 메소드

Helper function, just copies the values from this rectangle to the specified rectangle.
public copyTo ( FlxRect rect ) : FlxRect
rect FlxRect Any FlxRect.
리턴 FlxRect

copyToFlash() 공개 메소드

Helper function, just copies the values from this rectangle to the specified Flash rectangle.
public copyToFlash ( object flashRect ) : object
flashRect object Any Rectangle.
리턴 object

make() 공개 메소드

Instantiate a new rectangle. Protip: Values of the current instance are set, but nothing is created here.
public make ( float x, float y, float width, float height ) : FlxRect
x float The X-coordinate of the rectangle in space.
y float The Y-coordinate of the rectangle in space.
width float Desired width of the rectangle.
height float Desired height of the rectangle.
리턴 FlxRect

overlaps() 공개 메소드

Checks to see if some FlxRect object overlaps this FlxRect object.
public overlaps ( FlxRect rect ) : System.Boolean
rect FlxRect The rectangle being tested.
리턴 System.Boolean