C# 클래스 PrinceGame.RectangleExtensions

파일 보기 프로젝트 열기: salvadorc17/Prince-Monogame 1 사용 예제들

공개 메소드들

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

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

GetIntersectionDepth ( Rectangle rectA, Rectangle rectB ) : Vector2

Calculates the signed depth of intersection between two rectangles.

비공개 메소드들

메소드 설명
RectangleExtensions ( ) : System

메소드 상세

GetBottomCenter() 공개 정적인 메소드

Gets the position of the center of the bottom edge of the rectangle.
public static GetBottomCenter ( Rectangle rect ) : Vector2
rect Microsoft.Xna.Framework.Rectangle
리턴 Vector2

GetIntersectionDepth() 공개 정적인 메소드

Calculates the signed depth of intersection between two rectangles.
public static GetIntersectionDepth ( Rectangle rectA, Rectangle rectB ) : Vector2
rectA Microsoft.Xna.Framework.Rectangle
rectB Microsoft.Xna.Framework.Rectangle
리턴 Vector2