Guest User

Untitled

a guest
Jun 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char** argv) {
  4. exactinit();
  5.  
  6. double d1[2] = {0.0, 0.0};
  7. double d2[2] = {2.0, 0.0};
  8. double d3a[2] = {1.0, 1.0};
  9. double d3b[2] = {1.0, -1.0};
  10.  
  11. printf("result a: %f\n", orient2d(d1, d2, d3a));
  12. printf("result b: %f\n", orient2d(d1, d2, d3b));
  13.  
  14. return 0;
  15. }
  16.  
  17. // "result a: -1.997543"
  18. // "result b: -1.997528"
Add Comment
Please, Sign In to add comment