Isle
Loading...
Searching...
No Matches
orientableroi.cpp File Reference
#include "orientableroi.h"
#include "decomp.h"
#include <vec.h>
Include dependency graph for orientableroi.cpp:

Go to the source code of this file.

Functions

void CalcWorldBoundingVolumes (const BoundingSphere &modelling_sphere, const Matrix4 &local2world, BoundingBox &world_bounding_box, BoundingSphere &world_bounding_sphere)
 [AI] Computes the world-space bounding box and bounding sphere for an ROI using a modeling sphere and a transformation matrix. More...
 

Function Documentation

◆ CalcWorldBoundingVolumes()

void CalcWorldBoundingVolumes ( const BoundingSphere modelling_sphere,
const Matrix4 local2world,
BoundingBox world_bounding_box,
BoundingSphere world_bounding_sphere 
)

[AI] Computes the world-space bounding box and bounding sphere for an ROI using a modeling sphere and a transformation matrix.

[AI]

Parameters
modelling_sphereThe source bounding sphere describing the object in its local/model space. [AI]
local2worldTransformation matrix converting local coordinates to world coordinates. [AI]
[out]BoundingBoxOutput axis-aligned bounding box computed in world space. [AI]
[out]BoundingSphereOutput bounding sphere transformed to world space. [AI]

[AI] Helper utility for ROI (Real-time Object Instance) classes, typically used in update_world_bounding_volumes() to create world-space volumes for culling or collision, by transforming an existing modeling sphere. [AI]

Definition at line 163 of file orientableroi.cpp.