C# 클래스 Box2D.Collision.AABB

An axis-aligned bounding box.
파일 보기 프로젝트 열기: gerich-home/box2dnet 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
LowerBound Box2D.Common.Vec2
UpperBound Box2D.Common.Vec2

공개 메소드들

메소드 설명
AABB ( ) : System

Creates the default object, with vertices at 0,0 and 0,0.

AABB ( AABB copy ) : System

Copies from the given object

AABB ( Vec2 lowerVertex, Vec2 upperVertex ) : System

Creates an AABB object using the given bounding vertices.

Combine ( AABB aabb ) : void

Combines another aabb with this one

Combine ( AABB aabb1, AABB aab ) : void

Combine two AABBs into this one.

Contains ( AABB aabb ) : bool

Does this aabb contain the provided AABB.

GetCenterToOut ( Vec2 result ) : void
GetExtentsToOut ( Vec2 result ) : void
GetVertices ( Vec2 argRay ) : void
Raycast ( RayCastOutput output, RayCastInput input ) : bool
Raycast ( RayCastOutput output, RayCastInput input, IWorldPool argPool ) : bool

From Real-time Collision Detection, p179.

Set ( AABB aabb ) : void

Sets this object from the given object

TestOverlap ( AABB a, AABB b ) : bool
ToString ( ) : String

메소드 상세

AABB() 공개 메소드

Creates the default object, with vertices at 0,0 and 0,0.
public AABB ( ) : System
리턴 System

AABB() 공개 메소드

Copies from the given object
public AABB ( AABB copy ) : System
copy AABB the object to copy from
리턴 System

AABB() 공개 메소드

Creates an AABB object using the given bounding vertices.
public AABB ( Vec2 lowerVertex, Vec2 upperVertex ) : System
lowerVertex Box2D.Common.Vec2 the bottom left vertex of the bounding box
upperVertex Box2D.Common.Vec2 the top right vertex of the bounding box
리턴 System

Combine() 공개 메소드

Combines another aabb with this one
public Combine ( AABB aabb ) : void
aabb AABB
리턴 void

Combine() 공개 메소드

Combine two AABBs into this one.
public Combine ( AABB aabb1, AABB aab ) : void
aabb1 AABB
aab AABB
리턴 void

Contains() 공개 메소드

Does this aabb contain the provided AABB.
public Contains ( AABB aabb ) : bool
aabb AABB
리턴 bool

GetCenterToOut() 공개 메소드

public GetCenterToOut ( Vec2 result ) : void
result Box2D.Common.Vec2
리턴 void

GetExtentsToOut() 공개 메소드

public GetExtentsToOut ( Vec2 result ) : void
result Box2D.Common.Vec2
리턴 void

GetVertices() 공개 메소드

public GetVertices ( Vec2 argRay ) : void
argRay Box2D.Common.Vec2
리턴 void

Raycast() 공개 메소드

public Raycast ( RayCastOutput output, RayCastInput input ) : bool
output RayCastOutput
input RayCastInput
리턴 bool

Raycast() 공개 메소드

From Real-time Collision Detection, p179.
public Raycast ( RayCastOutput output, RayCastInput input, IWorldPool argPool ) : bool
output RayCastOutput
input RayCastInput
argPool IWorldPool
리턴 bool

Set() 공개 메소드

Sets this object from the given object
public Set ( AABB aabb ) : void
aabb AABB the object to copy from
리턴 void

TestOverlap() 공개 정적인 메소드

public static TestOverlap ( AABB a, AABB b ) : bool
a AABB
b AABB
리턴 bool

ToString() 공개 메소드

public ToString ( ) : String
리턴 String

프로퍼티 상세

LowerBound 공개적으로 프로퍼티

Bottom left vertex of bounding box.
public Vec2,Box2D.Common LowerBound
리턴 Box2D.Common.Vec2

UpperBound 공개적으로 프로퍼티

Top right vertex of bounding box.
public Vec2,Box2D.Common UpperBound
리턴 Box2D.Common.Vec2