C# Класс Box2D.Collision.AABB

An axis-aligned bounding box.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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