C# Class Box2D.Collision.AABB

An axis-aligned bounding box.
Afficher le fichier Open project: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
LowerBound Box2D.Common.Vec2
UpperBound Box2D.Common.Vec2

Méthodes publiques

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

Method Details

AABB() public méthode

Creates the default object, with vertices at 0,0 and 0,0.
public AABB ( ) : System
Résultat System

AABB() public méthode

Copies from the given object
public AABB ( AABB copy ) : System
copy AABB the object to copy from
Résultat System

AABB() public méthode

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
Résultat System

Combine() public méthode

Combines another aabb with this one
public Combine ( AABB aabb ) : void
aabb AABB
Résultat void

Combine() public méthode

Combine two AABBs into this one.
public Combine ( AABB aabb1, AABB aab ) : void
aabb1 AABB
aab AABB
Résultat void

Contains() public méthode

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

GetCenterToOut() public méthode

public GetCenterToOut ( Vec2 result ) : void
result Box2D.Common.Vec2
Résultat void

GetExtentsToOut() public méthode

public GetExtentsToOut ( Vec2 result ) : void
result Box2D.Common.Vec2
Résultat void

GetVertices() public méthode

public GetVertices ( Vec2 argRay ) : void
argRay Box2D.Common.Vec2
Résultat void

Raycast() public méthode

public Raycast ( RayCastOutput output, RayCastInput input ) : bool
output RayCastOutput
input RayCastInput
Résultat bool

Raycast() public méthode

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

Set() public méthode

Sets this object from the given object
public Set ( AABB aabb ) : void
aabb AABB the object to copy from
Résultat void

TestOverlap() public static méthode

public static TestOverlap ( AABB a, AABB b ) : bool
a AABB
b AABB
Résultat bool

ToString() public méthode

public ToString ( ) : String
Résultat String

Property Details

LowerBound public_oe property

Bottom left vertex of bounding box.
public Vec2,Box2D.Common LowerBound
Résultat Box2D.Common.Vec2

UpperBound public_oe property

Top right vertex of bounding box.
public Vec2,Box2D.Common UpperBound
Résultat Box2D.Common.Vec2