#include "erebus.h"
-void erb_xform_ray(struct erb_ray *ray, float *mat)
+void erb_xform_ray(struct erb_ray *ray, float *mat, cgm_vec3 *org, cgm_vec3 *dir)
{
- cgm_vmul_m4v3(&ray->o, mat);
- cgm_vmul_m3v3(&ray->d, mat);
+ *org = ray->o;
+ *dir = ray->d;
+ cgm_vmul_m4v3(org, mat);
+ cgm_vmul_m3v3(dir, mat);
}