KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Basic matrix operations. More...
#include <sys/cdefs.h>
Go to the source code of this file.
Data Structures | |
struct | vec3f_t |
3D floating-point vector More... | |
Macros | |
#define | vec3f_dot(x1, y1, z1, x2, y2, z2, w) |
Macro to return the scalar dot product of two 3d vectors. | |
#define | vec3f_length(x, y, z, w) |
Macro to return scalar Euclidean length of a 3d vector. | |
#define | vec3f_distance(x1, y1, z1, x2, y2, z2, w) |
Macro to return the Euclidean distance between two 3d vectors. | |
#define | vec3f_normalize(x, y, z) |
Macro to return the normalized version of a vector. | |
#define | vec3f_sub_normalize(x1, y1, z1, x2, y2, z2, x3, y3, z3) |
Macro to return the normalized version of a vector minus another vector. | |
#define | vec3f_rotr_xy(px, py, pz, cx, cy, cz, r) |
Macro to rotate a vector about its origin on the x, y plane. | |
#define | vec3f_rotr_xz(px, py, pz, cx, cy, cz, r) |
Macro to rotate a vector about its origin on the x, z plane. | |
#define | vec3f_rotr_yz(px, py, pz, cx, cy, cz, r) |
Macro to rotate a vector about its origin on the y, z plane. | |
#define | vec3f_rotd_xy(px, py, pz, cx, cy, cz, r) |
Macro to rotate a vector about its origin on the x, y plane. | |
#define | vec3f_rotd_xz(px, py, pz, cx, cy, cz, r) |
Macro to rotate a vector about its origin on the x, z plane. | |
#define | vec3f_rotd_yz(px, py, pz, cx, cy, cz, r) |
Macro to rotate a vector about its origin on the y, z plane. | |
Basic matrix operations.
This file contains various basic vector math functionality for using the SH4's vector instructions. Higher level functionality in KGL is built off of these.