I believe the square magnitude of a 3 component vector is: (xx + yy + z*z). If you multiply a vector by its square magnitude, is there a function that you can perform to obtain the original vector?
Lets take original vector3 A = (Ax, Ay, Az). The final vector3 B = A*(AxAx + AyAy + Az*Az).
Now, is there a function of B that will return A?
Thank you!
I originally found that the dot product of a Vector with itself equals the vectors square magnitude. However, I also read that the inverse of dot product is impossible because of many solutions. Still, with the two qualifiers (1: the dot product is between a vector and itself, 2: the final vector's components are linearly related to the original vector's corresponding components) there may be enough to restrict to one possible solution.
Get squared magnitude of
B. Note that resultSMBis equal to magnitude ofAin the sixth power (or cube ofSMA=squareMagnitude(A)).So you can get
squareMagnitude(A)as cube root ofSMBand extract components ofAP.S. It is interesting - what operations do provide
Bvalue?Concerning the second question - not very readable in comments, so I've added this: