GPipe-Collada-0.1.1: Load GPipe meshes from Collada files

Data.Vec.AABB

Description

This module provides an axis aligned bounding box based on Data.Vecs.

Synopsis

Documentation

data AABB Source

An axis aligned bounding box.

Constructors

AABB 

Instances

aabbTransform :: Mat44 Float -> AABB -> AABBSource

Transforms an 'AABB* using a 4x4 matrix. Note that this may grow the AABB and is not associative with matrix multiplication, i.e.

 (m2 `multmm` m1) `aabbTransform` aabb

is usually not the same as

 m2 `aabbTransform` (m1 `aabbTransform` aabb)

(The former is preferred as it minimizes the growing of the AABB).

testAABBprojection :: Mat44 Float -> AABB -> IntersectionSource

Try if an AABB is inside a projection frustum. The AABB must be defined in the same vector space as the matrix, e.g. use the model-view-projection matrix for model-local aabb's.