|
Checking for parallel vectors - something is wrong.
|
|
03-25-2016, 01:47 AM
Post: #1
|
||||
|
||||
|
Checking for parallel vectors - something is wrong.
Hi there
In a code I'm working, at some point I have two vectors with these values: Vec: {0.0,1.0,0.0} VecRef: {1.0,0.0,0.0} and by computing the dot product e3d_vec:dot(Vec, VecRef) it's returning 0.0 (zero). By the Dot Product definition, I was expecting to get a value other than zero. It should happens only if both vectors were parallel to each other. (Am I wrong?) The two vectors cannot be parallel, so I test this value to try fix that - I need them to be perpendicular each other, being the Vec1 the reference one. Just in case needed, here is the code where I use it: Code: force_perpendicular(Vec, VecRef) ->Any idea about what is wrong?
|
||||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Checking for parallel vectors - something is wrong. - micheus - 03-25-2016 01:47 AM
RE: Checking for parallel vectors - something is wrong. - ggaliens - 03-25-2016, 01:43 PM
RE: Checking for parallel vectors - something is wrong. - micheus - 03-25-2016, 01:58 PM
RE: Checking for parallel vectors - something is wrong. - ggaliens - 03-25-2016, 07:11 PM
RE: Checking for parallel vectors - something is wrong. - micheus - 03-25-2016, 07:25 PM
RE: Checking for parallel vectors - something is wrong. - ggaliens - 03-27-2016, 02:51 AM
RE: Checking for parallel vectors - something is wrong. - micheus - 03-27-2016, 05:03 AM
RE: Checking for parallel vectors - something is wrong. - ggaliens - 03-28-2016, 01:48 AM
|
User(s) browsing this thread: 1 Guest(s)




@MicheusVieira
MicheusVieira
Micheuss
micheus4wings3d