uvec1 = (vec3 - vec1).normalize3()
uvec2 = (vec3 - vec2).normalize3()
Vec normalize3()
{
double length = sqrt(x^2 + y^2 + z^2);
return new Vec(x/length, y/length, z/length);
}
仅给定 uvec2、vec1 和 vec2,是否可以求解 uvec1?
样本数据:
vec1 = (3994349.6104437034, -2525024.5798455356, 4270768.558174166, 1.0)
vec2 = (3994350.7884981344, -2525023.416923353, 4270767.502702763, 1.0)
vec3 = (3994403.673228261, -2525050.920923162, 4270738.823082169, 1.0)
uvec1 = (0.8058476404228322, -0.3926341461126214, -0.44322455677835176, 1.0)
uvec2 = (0.7994702158645208, -0.415784076265458, -0.43355619689910574, 1.0)