本文整理汇总了C++中Aircraft::nearMiss方法的典型用法代码示例。如果您正苦于以下问题:C++ Aircraft::nearMiss方法的具体用法?C++ Aircraft::nearMiss怎么用?C++ Aircraft::nearMiss使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Aircraft
的用法示例。
在下文中一共展示了Aircraft::nearMiss方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
int p2[3] = {-2398,-426,-5487};
int v2[3] = {-43,27,67};
int R = 5410;
*/
/*
int p1[3] = {3731,8537,5661};
int v1[3] = {-70,71,32};
int p2[3] = {8701,-1886,-5115};
int v2[3] = {28,-13,7};
int R = 9766;
*/
/*
int p1[3] = {-8509,9560,345};
int v1[3] = {-89,-33,62};
int p2[3] = {-5185,-1417,2846};
int v2[3] = {-58,24,26};
int R = 8344;
*/
/*
int p1[3] = {0,0,0};
int v1[3] = {1,0,0};
int p2[3] = {0,0,1};
int v2[3] = {0,1,0};
int R = 1;
*/
/*
int p1[3] = {0, 2856, -2856};
int v1[3] = {98, -9996, 9996};
int p2[3] = {10000, -2856, 2856};
int v2[3] = {98, 9996, -9996};
int R = 10000;
*/
/*
int p1[3] = {-8509, 9560, 345};
int v1[3] = {-89, -33, 62};
int p2[3] = {-5185, -1417, 2846};
int v2[3] = {-58, 24, 26};
int R = 8343;
*/
// {{0, 1, -1}, {3, -3, 3}, {1, -1, 1}, {3, 3, -3}, 1}
/*
int p1[3] = {0, 1, -1};
int v1[3] = {3, -3, 3};
int p2[3] = {1, -1, 1};
int v2[3] = {3, 3, -3};
int R = 1;
*/
// {{-7163, -371, -2459}, {-59, -41, -14}, {-2398, -426, -5487}, {-43, 27, 67}, 5410}
/*
int p1[3] = {-7163, -371, -2459};
int v1[3] = {-59, -41, -14};
int p2[3] = {-2398, -426, -5487};
int v2[3] = {-43, 27, 67};
int R = 5410;
*/
// {{0, 2856, -2856}, {98, -9996, 9996}, {10000, -2856, 2856}, {98, 9996, -9996}, 10000}
int p1[3] = {0, 2856, -2856};
int v1[3] = {98, -9996, 9996};
int p2[3] = {10000, -2856, 2856};
int v2[3] = {98, 9996, -9996};
int R = 10000;
vector<int> p1vec;
vector<int> p2vec;
vector<int> v1vec;
vector<int> v2vec;
for (int i = 0; i < 3; i++) {
p1vec.push_back(p1[i]);
p2vec.push_back(p2[i]);
v1vec.push_back(v1[i]);
v2vec.push_back(v2[i]);
}
cout << ac.nearMiss(p1vec, v1vec, p2vec, v2vec, R) << endl;
return 0;
}