RetroArch
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
guVector Struct Reference

3-element vector with x, y and z components. More...

#include <gu.h>

Detailed Description

3-element vector with x, y and z components.

When used in 3D transformations, it is treated as a column vector with an implied fourth 'w' coordinate of 1. For example, to multiply a vector vOld by a matrix m: vNew = m x vOld. In code:

guVecMultiply( m, &vOld, &vNew );
Note
This is a generic structure which can be used in any situation or function that accepts an array or struct with three f32 values.

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