X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=mat.h;h=870832829dd37719202235b7bd7e30e916228352;hp=c188723346fce7faeec94210a2eca2d9a61fa042;hb=bc662e293c854e1bdc9d46e9a410fe220247e6d4;hpb=07083c8dfbbd4fe48e84d86ce8d7e44e0719b84a diff --git a/mat.h b/mat.h index c188723..8708328 100644 --- a/mat.h +++ b/mat.h @@ -74,6 +74,16 @@ mat_t mat_new2(vec_t a, vec_t b, vec_t c, vec_t d) S(0.0), S(0.0), S(0.0), S(1.0)) +/* + * Get a pointer to the matrix data. + */ +INLINE_MAYBE +const scal_t* mat_data(const mat_t* m) +{ + return &m->v[0].x; +} + + /* * Get a column vector (can also access the vector array directly). */