MCPcopy Create free account
hub / github.com/carbonengine/trinity / Transpose

Function Transpose

trinityal/tests/Raytracing.cpp:427–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427void Transpose( float viewMatrix[4][4] )
428{
429 std::swap( viewMatrix[0][1], viewMatrix[1][0] );
430 std::swap( viewMatrix[0][2], viewMatrix[2][0] );
431 std::swap( viewMatrix[0][3], viewMatrix[3][0] );
432
433 std::swap( viewMatrix[1][2], viewMatrix[2][1] );
434 std::swap( viewMatrix[1][3], viewMatrix[3][1] );
435
436 std::swap( viewMatrix[2][3], viewMatrix[3][2] );
437}
438
439/************* render test *************/
440

Callers 15

UpdatePerObjectDataMethod · 0.85
DoUpdateListsMethod · 0.85
SetupShadowSplitMethod · 0.85
ComputeCORTAOMethod · 0.85
UpdateAimingBoneMethod · 0.85
TransposeMethod · 0.85
GetPerObjectDataMethod · 0.85
SubmitGeometryMethod · 0.85
SubmitGeometryMethod · 0.85

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected