Isle
Loading...
Searching...
No Matches
realtime.h
Go to the documentation of this file.
1#ifndef REALTIME_H
2#define REALTIME_H
3
4#include "matrix.h"
5#include "roi.h"
6
9#define NORMVEC3(dst, src) \
10 { \
11 double len = sqrt(NORMSQRD3(src)); \
12 VDS3(dst, src, len); \
13 }
14
21void CalcLocalTransform(const Vector3& p_posVec, const Vector3& p_dirVec, const Vector3& p_upVec, Matrix4& p_outMatrix);
22
29void CalcWorldBoundingVolumes(const BoundingSphere& modelling_sphere, const Matrix4& local2world, BoundingBox&, BoundingSphere&);
30
31#endif // REALTIME_H
[AI] Represents an axis-aligned bounding box in 3D space, using minimum and maximum points.
Definition: roi.h:20
[AI] Represents a bounding sphere in 3D space with center and radius.
Definition: roi.h:56
4x4 Matrix class with virtual interface for manipulation and transformation.
Definition: matrix.h:24
[AI] 3D vector class, providing vector and cross-product operations in 3D space.
Definition: vector.h:249
void CalcLocalTransform(const Vector3 &p_posVec, const Vector3 &p_dirVec, const Vector3 &p_upVec, Matrix4 &p_outMatrix)
[AI] Computes a transformation matrix based on a position, direction, and up vector.
Definition: realtime.cpp:7
void CalcWorldBoundingVolumes(const BoundingSphere &modelling_sphere, const Matrix4 &local2world, BoundingBox &, BoundingSphere &)
[AI] Computes the world-space bounding box and bounding sphere for an ROI using a modeling sphere and...