SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
Loading...
Searching...
No Matches
shz_mat4x4_t Struct Reference

#include <shz_matrix.h>

Inheritance diagram for shz_mat4x4_t:
Collaboration diagram for shz_mat4x4_t:

Data Fields

union { 
 
   float   elem [16] 
 
   float   elem2D [4][4] 
 
   shz_vec4_t   col [4] 
 
   struct { 
 
      shz_vec4_t   left 
 
      shz_vec4_t   up 
 
      shz_vec4_t   forward 
 
      shz_vec4_t   pos 
 
   }  
 
};  
 

Detailed Description

Structure representing a 4x4 column-major matrix.

Warning
This structure MUST be aligned on 8-byte boundaries!

Definition at line 73 of file shz_matrix.h.

Field Documentation

◆ elem

float shz_mat4x4_t::elem[16]

< Inner convenience union.

Access the matrix as a 1D array of 16 single-precision floats.

Definition at line 75 of file shz_matrix.h.

◆ elem2D

float shz_mat4x4_t::elem2D[4][4]

Access the matrix as a 2D array of 4x4 single-precision floats.

Definition at line 76 of file shz_matrix.h.

◆ col

shz_vec4_t shz_mat4x4_t::col[4]

Access the matrix as an array of 4 1x4 column vectors.

Definition at line 77 of file shz_matrix.h.

◆ left

shz_vec4_t shz_mat4x4_t::left

< Named column vectors.

Access the first column of the matrix as a 1x4 vector.

Definition at line 79 of file shz_matrix.h.

◆ up

shz_vec4_t shz_mat4x4_t::up

Access the second column of the matrix as a 1x4 vector.

Definition at line 80 of file shz_matrix.h.

◆ forward

shz_vec4_t shz_mat4x4_t::forward

Access the third column of the matrix as a 1x4 vector.

Definition at line 81 of file shz_matrix.h.

◆ pos

shz_vec4_t shz_mat4x4_t::pos

Access the last column of the matrix as a 1x4 vector.

Definition at line 82 of file shz_matrix.h.


The documentation for this struct was generated from the following file: