C# 클래스 Platformer.RectangleExtensions

A set of helpful methods for working with rectangles.
파일 보기 프로젝트 열기: zmthy/play-dead 1 사용 예제들

공개 메소드들

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

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

GetIntersectionDepth ( this rectA, RectangleF rectB ) : Vector2

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, RectangleF rectB ) : Vector2
rectA this
rectB RectangleF
리턴 Vector2