b3dGetMatElement

Returns specific element from entity world transformation matrix (4x4, row 0-3, column 0-3). Takes entity (entity handle), row (matrix row index 0-3), column (matrix column index 0-3). Returns matrix element value (Double), or 0.0 if invalid entity or out-of-range row/column.

3D Graphics

Parameters & Returns

Parameters

entity Int
row Int
column Int

Returns

Double

Quick Summary

Returns specific element from entity world transformation matrix (4x4, row 0-3, column 0-3). Takes entity (entity handle), row (matrix row index 0-3), column (matrix column index 0-3). Returns matrix element value (Double), or 0.0 if invalid entity or out-of-range row/column.

Technical Exegesis...

Returns specific element from entity world transformation matrix (4x4, row 0-3, column 0-3). Takes entity (entity handle), row (matrix row index 0-3), column (matrix column index 0-3). Returns matrix element value (Double), or 0.0 if invalid entity or out-of-range row/column. Validates entity exists and row/column in [0,3] range, builds world matrix (scale * rotation * translation), returns matrix element at [row][column], negates Y translation (row=3, column=1) back to user space.

Example

Example.bam
; No example implemented yet