Guest User

Untitled

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