English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In Python, if I have:

heading = vector(0,0,0) # heading

How do I obtain the vector perpendicular to that? Is there a function that can do it?

Thx

2007-04-30 00:00:21 · 1 answers · asked by Anonymous in Science & Mathematics Mathematics

in python, writing vector(0,0) is just the same as writing vector(0,0,0).

2007-04-30 23:01:17 · update #1

1 answers

You seem to have a conceptual difficulty. In three dimensions there is no single (unit scale, oriented) vector perpendicular to a given vector; there's a whole plane. So it's difficult to envisage which particular vector you want out of the infinitely many possibilities.

2007-04-30 22:36:24 · answer #1 · answered by Scarlet Manuka 7 · 0 0

fedest.com, questions and answers