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

Method Frustum

Engine/source/math/util/frustum.cpp:58–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56//-----------------------------------------------------------------------------
57
58Frustum::Frustum( bool isOrtho,
59 F32 nearLeft,
60 F32 nearRight,
61 F32 nearTop,
62 F32 nearBottom,
63 F32 nearDist,
64 F32 farDist,
65 const MatrixF &transform )
66{
67 mTransform = transform;
68 mPosition = transform.getPosition();
69
70 mNearLeft = nearLeft;
71 mNearRight = nearRight;
72 mNearTop = nearTop;
73 mNearBottom = nearBottom;
74 mNearDist = nearDist;
75 mFarDist = farDist;
76 mIsOrtho = isOrtho;
77
78 mNumTiles = 1;
79 mCurrTile.set(0,0);
80 mTileOverlap.set(0.0f, 0.0f);
81
82 mProjectionOffset.zero();
83 mProjectionOffsetMatrix.identity();
84}
85
86//-----------------------------------------------------------------------------
87

Callers

nothing calls this directly

Calls 4

getPositionMethod · 0.45
setMethod · 0.45
zeroMethod · 0.45
identityMethod · 0.45

Tested by

no test coverage detected