Skip to content

shz_xmtrx_transform_vec3_transpose

Markdown
SHZ_INLINE shz_vec3_t shz_xmtrx_transform_vec3_transpose(shz_vec3_t vec) SHZ_NOEXCEPT;

Transforms a 3D vector by the transpose of XMTRX.

NameTypeDescription
vecshz_vec3_tInput 3D vector to transform.

vec multiplied by XMTRX.

This routine is an efficient way to do a one-off multiplicaiton of vec by the transpose of the 4x4 matrix held within XMTRX.

  • For transforming multiple 3D vectors by XMTRX's transpose, it's more efficient to perform batch processing like so: text shz_xmtrx_transpose() for(i in vectors) out[i] = shz_xmtrx_transform_vec3(in[i]); shz_xmtrx_transpose();
  • _transpose: Operates with the transposed matrix (row-major input, or inverse-rotation use). (Naming and Suffixes)
  • C++ equivalent: none (call the C function from C++)
  • Type-generic form: none
  • Back-ends: SH4: dedicated SH4 implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_xmtrx.h:1099
  • Module: XMTRX, section "Transformations"

shz_xmtrx_transform_vec3, shz_xmtrx_transform_vec4_transpose, shz_xmtrx_transpose, shz_mat4x4_transform_vec3_transpose