C# 클래스 FarseerPhysics.Collision.AABB

An axis aligned bounding box.
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
lowerBound Vector2
upperBound Vector2

공개 메소드들

메소드 설명
AABB ( Vector2 min, Vector2 max ) : System
AABB ( Vector2 center, float width, float height ) : System
combine ( AABB &aabb ) : void

Combine an AABB into this one.

combine ( AABB &aabb1, AABB &aabb2 ) : void

Combine two AABBs into this one.

contains ( AABB &aabb ) : bool

Does this aabb contain the provided AABB.

contains ( Vector2 &point ) : bool

Determines whether the AAABB contains the specified point.

isValid ( ) : bool

Verify that the bounds are sorted. And the bounds are valid numbers (not NaN).

rayCast ( RayCastOutput &output, RayCastInput &input, bool doInteriorCheck = true ) : bool

Raycast against this AABB using the specificed points and maxfraction (found in input)

testOverlap ( AABB &a, AABB &b ) : bool

Test if the two AABBs overlap.

메소드 상세

AABB() 공개 메소드

public AABB ( Vector2 min, Vector2 max ) : System
min Vector2
max Vector2
리턴 System

AABB() 공개 메소드

public AABB ( Vector2 center, float width, float height ) : System
center Vector2
width float
height float
리턴 System

combine() 공개 메소드

Combine an AABB into this one.
public combine ( AABB &aabb ) : void
aabb AABB The aabb.
리턴 void

combine() 공개 메소드

Combine two AABBs into this one.
public combine ( AABB &aabb1, AABB &aabb2 ) : void
aabb1 AABB The aabb1.
aabb2 AABB The aabb2.
리턴 void

contains() 공개 메소드

Does this aabb contain the provided AABB.
public contains ( AABB &aabb ) : bool
aabb AABB The aabb.
리턴 bool

contains() 공개 메소드

Determines whether the AAABB contains the specified point.
public contains ( Vector2 &point ) : bool
point Vector2 The point.
리턴 bool

isValid() 공개 메소드

Verify that the bounds are sorted. And the bounds are valid numbers (not NaN).
public isValid ( ) : bool
리턴 bool

rayCast() 공개 메소드

Raycast against this AABB using the specificed points and maxfraction (found in input)
public rayCast ( RayCastOutput &output, RayCastInput &input, bool doInteriorCheck = true ) : bool
output RayCastOutput Output.
input RayCastInput Input.
doInteriorCheck bool If set to true do interior check.
리턴 bool

testOverlap() 공개 정적인 메소드

Test if the two AABBs overlap.
public static testOverlap ( AABB &a, AABB &b ) : bool
a AABB The first AABB.
b AABB The second AABB.
리턴 bool

프로퍼티 상세

lowerBound 공개적으로 프로퍼티

The lower vertex
public Vector2 lowerBound
리턴 Vector2

upperBound 공개적으로 프로퍼티

The upper vertex
public Vector2 upperBound
리턴 Vector2