C# 클래스 Protogame.BoundingBoxExtensions

These extension methods assist with converting between bounding boxes and rectangles.

Protogame's bounding box includes speed attributes, which the built-in MonoGame bounding box does not have.

파일 보기 프로젝트 열기: RedpointGames/Protogame

공개 메소드들

메소드 설명
CopyTo ( this rectangle, IBoundingBox boundingBox ) : void

Copies the specified XNA rectangle to the Protogame bounding box.

CopyTo ( this boundingBox, Rectangle rectangle ) : void

Copies the specified Protogame bounding box to the XNA rectangle.

ToBoundingBox ( this rectangle ) : IBoundingBox

Converts the specified XNA rectangle to a Protogame bounding box.

ToProtogame ( this boundingBox ) : IBoundingBox

Converts the specified XNA bounding box to a Protogame bounding box.

ToRectangle ( this boundingBox ) : Rectangle

Converts the specified Protogame bounding box to an XNA rectangle.

ToXna ( this boundingBox ) : Microsoft.Xna.Framework.BoundingBox

Converts the specified Protogame bounding box to an XNA bounding box.

메소드 상세

CopyTo() 공개 정적인 메소드

Copies the specified XNA rectangle to the Protogame bounding box.
public static CopyTo ( this rectangle, IBoundingBox boundingBox ) : void
rectangle this /// The XNA rectangle to copy from. ///
boundingBox IBoundingBox /// The Protogame bounding box to copy to. ///
리턴 void

CopyTo() 공개 정적인 메소드

Copies the specified Protogame bounding box to the XNA rectangle.
public static CopyTo ( this boundingBox, Rectangle rectangle ) : void
boundingBox this /// The Protogame bounding box to copy from. ///
rectangle Microsoft.Xna.Framework.Rectangle /// The XNA rectangle to copy to. ///
리턴 void

ToBoundingBox() 공개 정적인 메소드

Converts the specified XNA rectangle to a Protogame bounding box.
public static ToBoundingBox ( this rectangle ) : IBoundingBox
rectangle this /// The XNA rectangle to convert. ///
리턴 IBoundingBox

ToProtogame() 공개 정적인 메소드

Converts the specified XNA bounding box to a Protogame bounding box.
public static ToProtogame ( this boundingBox ) : IBoundingBox
boundingBox this /// The XNA bounding box to convert. ///
리턴 IBoundingBox

ToRectangle() 공개 정적인 메소드

Converts the specified Protogame bounding box to an XNA rectangle.
public static ToRectangle ( this boundingBox ) : Rectangle
boundingBox this /// The Protogame bounding box to convert. ///
리턴 Microsoft.Xna.Framework.Rectangle

ToXna() 공개 정적인 메소드

Converts the specified Protogame bounding box to an XNA bounding box.
public static ToXna ( this boundingBox ) : Microsoft.Xna.Framework.BoundingBox
boundingBox this /// The Protogame bounding box to convert. ///
리턴 Microsoft.Xna.Framework.BoundingBox