C# Класс TerrainDisplay.Collision._3D.AABB

Axis-Aligned Bounding Box
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AABB() публичный Метод

public AABB ( IEnumerable vertices ) : System
vertices IEnumerable
Результат System

AABB() публичный Метод

public AABB ( IShape shape ) : System
shape IShape
Результат System

AABB() публичный Метод

Constructor
public AABB ( IShape shape, int id ) : System
shape IShape The IShape to place in this bounding box.
id int
Результат System

AABB() публичный Метод

public AABB ( System.Vector3 min, System.Vector3 max ) : System
min System.Vector3
max System.Vector3
Результат System

Intersects() публичный статический Метод

Checks if two AABBs intersect.
public static Intersects ( AABB box1, AABB box2 ) : bool
box1 AABB One AABB
box2 AABB The other AABB
Результат bool

Intersects() публичный статический Метод

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.
Результат bool