Guest User

Untitled

a guest
Aug 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. float a = Vector3f::dot(d,d);
  2. float b = 2 * (Vector3f::dot(o,d));
  3. float c = Vector3f::dot(o,o) - pow(radius, 2);
  4.  
  5. float discr = pow(b,2) - 4 * a * c;
Add Comment
Please, Sign In to add comment