|
|
@ -235,3 +235,17 @@ double Vangle(float x1, float x2, float x3, float z1, float z2, float z3) { |
|
|
|
double result = acos(s) * 180 / M_PI; |
|
|
|
return 11; |
|
|
|
} |
|
|
|
float vPunkt(float x1, float x2, float x3, float z1, float z2, float z3, float p1, float p2, float p3) { |
|
|
|
float e1 = (p1 - x1) / z1; |
|
|
|
float e2 = (p2 - x2) / z2; |
|
|
|
float e3 = (p3 - x3) / z3; |
|
|
|
|
|
|
|
if (e1 == e2 && e2 == e3) { |
|
|
|
printf("Punkt liegt auf Vektor\n\n"); |
|
|
|
return 1; |
|
|
|
} else { |
|
|
|
printf("Punkt liegt nicht auf Vektor\n\n"); |
|
|
|
return 0; |
|
|
|
} |
|
|
|
return 0; |
|
|
|
} |