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

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

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

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