Back to class index
| Frustum::FrustumSyntaxFrustum::Frustum(); [29 lines of code]The default constructor creates an uninitialized Frustum object. This means that the values of the members type, projectiveSpace, handedness, pos, front, up, nearPlaneDistance, farPlaneDistance, horizontalFov/orthographicWidth and verticalFov/orthographicHeight are all NaN after creating a new Frustum using this default constructor. Remember to assign to them before use. Note As an exception to other classes in MathGeoLib, this class initializes its members to NaNs, whereas the other classes leave the members uninitialized. This difference is because the Frustum class implements a caching mechanism where world, projection and viewProj matrices are recomputed on demand, which does not work nicely together if the defaults were uninitialized. [opaque-qtscript] See AlsoWork in progress:Todo: in Frustum::Frustum(): remove the opaque-qtscript attribute. |