C# 클래스 Microsoft.Xna.Framework.RectangleExtension

A set of helpful methods for working with rectangles.
파일 보기 프로젝트 열기: valryon/super-caissiere

공개 메소드들

메소드 설명
GetBottomCenter ( this rect ) : Vector2

Gets the position of the center of the bottom edge of the rectangle.

GetIntersectionDepth ( this rectA, Rectangle rectB, Vector2 &depth ) : bool

Calculates the signed depth of intersection between two rectangles.

메소드 상세

GetBottomCenter() 공개 정적인 메소드

Gets the position of the center of the bottom edge of the rectangle.
public static GetBottomCenter ( this rect ) : Vector2
rect this
리턴 Vector2

GetIntersectionDepth() 공개 정적인 메소드

Calculates the signed depth of intersection between two rectangles.
public static GetIntersectionDepth ( this rectA, Rectangle rectB, Vector2 &depth ) : bool
rectA this
rectB Rectangle
depth Vector2
리턴 bool