czm_transpose
Returns the transpose of the matrix. The input matrix
can be
a mat2
, mat3
, or mat4
.
Parameters:
Name | Type | Description |
---|---|---|
{} |
matrix The matrix to transpose. |
Returns:
{} The transposed matrix.
Example
// GLSL declarations mat2 czm_transpose(mat2 matrix); mat3 czm_transpose(mat3 matrix); mat4 czm_transpose(mat4 matrix); // Tranpose a 3x3 rotation matrix to find its inverse. mat3 eastNorthUpToEye = czm_eastNorthUpToEyeCoordinates( positionMC, normalEC); mat3 eyeToEastNorthUp = czm_transpose(eastNorthUpToEye);