#include <stdio.h>
Go to the source code of this file.
|
#define | D ((ax2 - ax1) * (by1 - by2) - (ay2 - ay1) * (bx1 - bx2)) |
|
#define | D1 ((bx1 - ax1) * (by1 - by2) - (by1 - ay1) * (bx1 - bx2)) |
|
#define | D2 ((ax2 - ax1) * (by1 - ay1) - (ay2 - ay1) * (bx1 - ax1)) |
|
|
int | dig_test_for_intersection (double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2) |
|
int | dig_find_intersection (double ax1, double ay1, double ax2, double ay2, double bx1, double by1, double bx2, double by2, double *x, double *y) |
|
#define D ((ax2 - ax1) * (by1 - by2) - (ay2 - ay1) * (bx1 - bx2)) |
◆ D1
#define D1 ((bx1 - ax1) * (by1 - by2) - (by1 - ay1) * (bx1 - bx2)) |
◆ D2
#define D2 ((ax2 - ax1) * (by1 - ay1) - (ay2 - ay1) * (bx1 - ax1)) |
◆ dig_find_intersection()
int dig_find_intersection |
( |
double |
ax1, |
|
|
double |
ay1, |
|
|
double |
ax2, |
|
|
double |
ay2, |
|
|
double |
bx1, |
|
|
double |
by1, |
|
|
double |
bx2, |
|
|
double |
by2, |
|
|
double * |
x, |
|
|
double * |
y |
|
) |
| |
◆ dig_test_for_intersection()
int dig_test_for_intersection |
( |
double |
ax1, |
|
|
double |
ay1, |
|
|
double |
ax2, |
|
|
double |
ay2, |
|
|
double |
bx1, |
|
|
double |
by1, |
|
|
double |
bx2, |
|
|
double |
by2 |
|
) |
| |