空间向量夹角
摘要:
空间夹角公式见下图:代码:#include <iostream>#include <cmath>using namespace std;const double eps = 1e-11;struct Node { double x, y, z; Node() { x = y = z = 0; } Node(double a, double b, double c) { x = a; y = b; z = c; } Node operator- ( Node nd ) { return Node(x-nd.x, y-nd.y, z-nd.z); }};Node goodE 阅读全文