MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / makeFrustum

Function makeFrustum

Engine/source/math/mathUtils.cpp:1403–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1401//-----------------------------------------------------------------------------
1402
1403void makeFrustum( F32 *outLeft,
1404 F32 *outRight,
1405 F32 *outTop,
1406 F32 *outBottom,
1407 F32 fovYInRadians,
1408 F32 aspectRatio,
1409 F32 nearPlane )
1410{
1411 F32 top = nearPlane * mTan( fovYInRadians / 2.0 );
1412 if ( outTop ) *outTop = top;
1413 if ( outBottom ) *outBottom = -top;
1414
1415 F32 left = top * aspectRatio;
1416 if ( outLeft ) *outLeft = -left;
1417 if ( outRight ) *outRight = left;
1418}
1419
1420//-----------------------------------------------------------------------------
1421

Callers 5

updateFaceMethod · 0.85
_renderMethod · 0.85
calcLightMatricesMethod · 0.85
makeProjectionFunction · 0.85
setMethod · 0.85

Calls 1

mTanFunction · 0.85

Tested by

no test coverage detected