C# Class TerrainDisplay.Collision._3D.AABB

Axis-Aligned Bounding Box
Afficher le fichier Open project: WCell/WCell-Terrain Class Usage Examples

Méthodes publiques

Méthode Description
AABB ( IEnumerable vertices ) : System
AABB ( IShape shape ) : System
AABB ( IShape shape, int id ) : System

Constructor

AABB ( System.Vector3 min, System.Vector3 max ) : System
Intersects ( AABB box1, AABB box2 ) : bool

Checks if two AABBs intersect.

Intersects ( AABB box, Ray ray ) : bool

Checks if a Ray intersects an AABB.

Method Details

AABB() public méthode

public AABB ( IEnumerable vertices ) : System
vertices IEnumerable
Résultat System

AABB() public méthode

public AABB ( IShape shape ) : System
shape IShape
Résultat System

AABB() public méthode

Constructor
public AABB ( IShape shape, int id ) : System
shape IShape The IShape to place in this bounding box.
id int
Résultat System

AABB() public méthode

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

Intersects() public static méthode

Checks if two AABBs intersect.
public static Intersects ( AABB box1, AABB box2 ) : bool
box1 AABB One AABB
box2 AABB The other AABB
Résultat bool

Intersects() public static méthode

Checks if a Ray intersects an AABB.
public static Intersects ( AABB box, Ray ray ) : bool
box AABB The AABB in question.
ray Ray The Ray in question.
Résultat bool