C# Class Project290.Physics.Collision.AABB

An axis aligned bounding box.
Afficher le fichier Open project: scastle/Solitude 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 ( float width, float height, Vector2 position ) : 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.

RayCast ( RayCastOutput &output, RayCastInput &input ) : bool
TestOverlap ( AABB &a, AABB &b ) : bool
TestOverlap ( Shape shapeA, int indexA, Shape shapeB, int indexB, Transform &xfA, Transform &xfB ) : bool

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 ( float width, float height, Vector2 position ) : System
width float
height float
position Vector2
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.
public IsValid ( ) : bool
Résultat bool

RayCast() public méthode

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

TestOverlap() public static méthode

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

TestOverlap() public static méthode

public static TestOverlap ( Shape shapeA, int indexA, Shape shapeB, int indexB, Transform &xfA, Transform &xfB ) : bool
shapeA Project290.Physics.Collision.Shapes.Shape
indexA int
shapeB Project290.Physics.Collision.Shapes.Shape
indexB int
xfA Transform
xfB Transform
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