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

Function makeFrustum

Engine/source/math/mathUtils.cpp:1390–1405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1388//-----------------------------------------------------------------------------
1389
1390void makeFrustum( F32 *outLeft,
1391 F32 *outRight,
1392 F32 *outTop,
1393 F32 *outBottom,
1394 F32 fovYInRadians,
1395 F32 aspectRatio,
1396 F32 nearPlane )
1397{
1398 F32 top = nearPlane * mTan( fovYInRadians / 2.0 );
1399 if ( outTop ) *outTop = top;
1400 if ( outBottom ) *outBottom = -top;
1401
1402 F32 left = top * aspectRatio;
1403 if ( outLeft ) *outLeft = -left;
1404 if ( outRight ) *outRight = left;
1405}
1406
1407//-----------------------------------------------------------------------------
1408

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