本文介绍了使向量垂直于另一个向量的公式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要得到一个垂直于矢量A的平面上的三维矢量B的公式是什么?

What is a formula to get a three dimensional vector B lying on the plane perpendicular to a vector A?

也就是说,给定一个向量A,公式f(angle,modulus)是什么,它给出一个垂直于A的向量,具有所述模数并旋转一个角度?

That is, given a vector A, what is a formula f(angle,modulus) which gives a vector that is perpendicular to A, with said modulus and rotated through an angle?

推荐答案

如果两个向量垂直,则它们的点积为零.

If the two vectors are perpendicular then their dot product is zero.

所以:v1(x1, y1, z1), v2(x2, y2, z2).

=> x1 * x2 + y1 * y2 + z1 * z2 = 0

您知道(x1, y1, z1).放置任意x2y2,您将收到相应的z2:

You know (x1, y1, z1). Put arbitrary x2 andy2 and you will receive the corresponding z2:

z1 * z2 = -x1 * x2 - y1 * y2
=> z2 = (-x1 * x2 - y1 * y2) / z1

请注意z1是否为0.那你在飞机上.

Be aware if z1 is 0. Then you are in the plane.

这篇关于使向量垂直于另一个向量的公式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 06:37