求一个向量垂直于另一个向量的公式是什么? [英] What is a formula to get a vector perpendicular to another vector?

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

问题描述

求与向量 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.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆