X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=mat.h;h=870832829dd37719202235b7bd7e30e916228352;hb=bc662e293c854e1bdc9d46e9a410fe220247e6d4;hp=c188723346fce7faeec94210a2eca2d9a61fa042;hpb=34efcdbb29b75754fef5066c5999671bc2d2fb12;p=chaz%2Frasterize 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). */