C# Class TerrainDisplay.Collision._3D.AABB

Axis-Aligned Bounding Box
Exibir arquivo Open project: WCell/WCell-Terrain Class Usage Examples

Public Methods

Method 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 method

public AABB ( IEnumerable vertices ) : System
vertices IEnumerable
return System

AABB() public method

public AABB ( IShape shape ) : System
shape IShape
return System

AABB() public method

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

AABB() public method

public AABB ( System.Vector3 min, System.Vector3 max ) : System
min System.Vector3
max System.Vector3
return System

Intersects() public static method

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

Intersects() public static method

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.
return bool