Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include "global.h"
  2. #include "plan.h"
  3. #include "Ray.h"
  4. #include <math.h>
  5. #include <float.h>
  6.  
  7. struct TRay;
  8.  
  9. bool TPlan::Collision(TRay & tRay) const
  10. {
  11. float fSmallLength = tRay.m_tDir.DotProduct(m_tPosition);
  12.  
  13. if (fSmallLength > 0)
  14. {
  15. return true;
  16. }
  17.  
  18. return false;
  19. }
  20.  
  21.  
  22. unsigned int TPlan::Shade() const
  23. {
  24. return GfxColor(255, 255, 255, 255);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement