mirror of https://github.com/AxioDL/zeus.git
Add pointer comments to CMRay
This commit is contained in:
parent
e08dcffcd1
commit
726fff8299
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue