33 "points are equal "<< p1 <<
" "<<p2<<
endl;
41 const auto p0 = p1_-p;
44 auto tp =
MatMul(rotMat_, po);
46 return realx3(tp(0,0), tp(1,0), tp(2,0));
55 return realx3(rp(0,0)+p1_.x(),rp(1,0)+p1_.y(), rp(2,0)+p1_.z());
63 const realx3 Unit = {0,0,1};
65 auto uvw =
cross(v_unit,Unit);
67 const auto rcos =
dot(v_unit, Unit);
68 const auto rsin = uvw.length();
72 const auto& [u, v, w] = uvw;
75 ArrayType({rcos, 0, 0, 0, rcos, 0, 0, 0, rcos})+
76 ArrayType({0, -w, v, w, 0, -u, -v, u, 0})+
77 (1-rcos)*
ArrayType({u*u, u*v, u*w, u*v, v*v, w*v, u*w, v*w, w*w});