Add pointer comments to CMRay

This commit is contained in:
Jack Andersen 2017-03-28 16:50:27 -10:00
parent e08dcffcd1
commit 726fff8299
1 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ namespace zeus
{
struct CMRay
{
CMRay(const CVector3f& start, const CVector3f& end, float d) : start(start), end(end), d(d), invD(1.f / d)
CMRay(const CVector3f& start, const CVector3f& end, float d) : start(start), d(d), invD(1.f / d), end(end)
{
normal = start + (d * end);
delta = normal - start;
@ -26,12 +26,12 @@ struct CMRay
return CMRay(inv * start, inv * normal, d, invD);
}
CVector3f start;
CVector3f normal;
CVector3f delta;
float d;
float invD;
CVector3f end;
CVector3f start; // x0
CVector3f normal; // xc
CVector3f delta; // x18
float d; // x24
float invD; // x28
CVector3f end; // x2c
};
}