I was trying to compute the area of the triangle formed by the points, thinking that if the area is 0 then the points are colinear, and I am getting the area either 0 or 0 real an dan imaginary part...is that normal?
why am i getting an imaginary part?
Hello,
I have tested with ratio 1 and i am getting P2, so it seems correct, but once I apply the ratio 1.11 things change.
I am trying to test colinearity by applying the cross product on vectors (P3-P1) and (P2-P1). It's a correct test right?
Would it be correct to verify colinearity by...
Hello,
I have a histogram, where I count the number of occurrences that a function takes particular values in the range 0.8 and 2.2.
I would like to get the cumulative distribution function for the set of values. Is it correct to just count the total number of occurrences until each...
Hello,
I tried rounding to 2 decimals and i still get in some cases non colinearity.
This is my code:
rangeRatio = 1.114;
norm = sqrt((P2(1) - P1(1))^2 + (P2(2) - P1(2))^2 + (P2(3) - P1(3))^2);
P3(1) = P1(1) + ((P2(1,1) - P1(1)) /norm) * rangeRatio;
P3(2) = P1(2) + ((P2(1,2) - P1(2))...
Thank you for the reply.
I have implemented the code without division by norm, and I have tested the colinearity by applying the cross product on MB * MA, and by checking the slope between the MB and MA (for e.g.: (y1 - y2) * (x1 - x3) - (y1 - y3) * (x1 - x2) should be zero is all three points...
Thank you for the reply.
So far I came up with the code below. I tried to verify the colinearity condition with the cross product of the vectors (P3-P1) and (P2-P1), but I don't get zero in all cases.
What am I doing wrong?
norm = sqrt((P2(1,1) - P1(1))^2 + (P2(1,2) - P1(2))^2 +...
Hello,
I have asked this question already but have not been able to get conclusive answer.
I have a problem and please let me know if my solution is correct.
I have a known point, at location A(x1,y1,z1) and the point B(x2,y2,z2) and I would like to find the coordinates of a third...
I was hoping for some pointers from someone who has experience with the implementation of Kalman filters. I would like to know if that is a well designed filter, or if I should introduce more elements in the state vector like heading, and odometer and gyro bias, or the filter is going to work...
Hello,
I am trying to create a filter that can integrate inertial measurements with GPS measurements. My inertial sensors are a yaw axis gyro, an odometer, and possibly a 3axis accelerometer.
Could you please help me with some guidance? I have read papers, articles and books on the subject but...