Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "global.h"
- #include "plan.h"
- #include "Ray.h"
- #include <math.h>
- #include <float.h>
- struct TRay;
- bool TPlan::Collision(TRay & tRay) const
- {
- float fSmallLength = tRay.m_tDir.DotProduct(m_tPosition);
- if (fSmallLength > 0)
- {
- return true;
- }
- return false;
- }
- unsigned int TPlan::Shade() const
- {
- return GfxColor(255, 255, 255, 255);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement