BSNS102 Study Guide - Final Guide: C Mathematical Functions, Linear Algebra, Inertial Frame Of Reference
Document Summary
The determinant() function computes the determinant of the matrix. Only the 3 3 por- tion is actually used. If we assume a rightmost column of [0,0,0,1]t, then the last row (the translation portion) is canceled out by the first three 0"s of this assumed rightmost column. inverse() computes and returns the inverse of a matrix. As we noted in the source com- ments, it is not technically possible to invert a 4 3 matrix, since only square matrices can be inverted. Once again, assuming a rightmost column of [0,0,0,1]t will circumvent these legalities. gettranslation() is a handy shorthand function for extracting the translation portion of a matrix in vector form. getpositionfromlocaltoparentmatrix() and getpositionfromparent- Tolocalmatrix() are functions (with extremely long names) that extract the position of a local coordinate space within a parent coordinate space, given a matrix that performs the specified transformation. In a way, these functions reverse-engineer the position part of setuplocalto-