C# Class FarseerPhysics.Collision.AABB

An axis aligned bounding box.
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
lowerBound Vector2
upperBound Vector2

Méthodes publiques

Méthode Description
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.

Method Details

AABB() public méthode

public AABB ( Vector2 min, Vector2 max ) : System
min Vector2
max Vector2
Résultat System

AABB() public méthode

public AABB ( Vector2 center, float width, float height ) : System
center Vector2
width float
height float
Résultat System

combine() public méthode

Combine an AABB into this one.
public combine ( AABB &aabb ) : void
aabb AABB The aabb.
Résultat void

combine() public méthode

Combine two AABBs into this one.
public combine ( AABB &aabb1, AABB &aabb2 ) : void
aabb1 AABB The aabb1.
aabb2 AABB The aabb2.
Résultat void

contains() public méthode

Does this aabb contain the provided AABB.
public contains ( AABB &aabb ) : bool
aabb AABB The aabb.
Résultat bool

contains() public méthode

Determines whether the AAABB contains the specified point.
public contains ( Vector2 &point ) : bool
point Vector2 The point.
Résultat bool

isValid() public méthode

Verify that the bounds are sorted. And the bounds are valid numbers (not NaN).
public isValid ( ) : bool
Résultat bool

rayCast() public méthode

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.
Résultat bool

testOverlap() public static méthode

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

Property Details

lowerBound public_oe property

The lower vertex
public Vector2 lowerBound
Résultat Vector2

upperBound public_oe property

The upper vertex
public Vector2 upperBound
Résultat Vector2