Another approach is- 1) Find slop of line AB then draw a line passing through P and having slop equal to AB. 2) check the x-intercepts of AB and line through P to decide left or right.
@rajatmaheshwari9168 жыл бұрын
upload more! i am well aware from the death of a great teacher humblefool, but guys someone needs to continue his legacy... you (most probably his friends or colleagues) have to upload more content and regularly in order to show our respect and honour to him.
@tityseptiani85847 жыл бұрын
wait, you mean the guy who originally and mostly created the videos in this channel passed away already?
@spacesuitred38396 жыл бұрын
yea
@venkateswarans10126 жыл бұрын
No he is working in Microsoft
@AMITSHARMA-oh1nq4 жыл бұрын
He passed away 5 years past
@unknownman14 жыл бұрын
@@venkateswarans1012 This guy passed away, but the other guy who also makes the video is working in Google
@AbhayKumar-cz2fc9 жыл бұрын
@Manikanta The convention is like that . For point above line we take it as left so for that point cross product is positive and so on.
@carmelraj21588 жыл бұрын
Very good tutorial. Love it. Please upload more kind of programming with maths
@NiazMohammad7 жыл бұрын
how to define left or right i.e. on what basis are we defining the directions? is it dependent of the Line direction? from POV of observer or from POV of the line itself?
@dannywest7496 жыл бұрын
Niaz Mohammad At A looking in the direction of B, where does P lie?
@wildpasco4 жыл бұрын
@@dannywest749 😮😮 Makes sense now, thanks !!!!
@latifurrahmanzihad2 жыл бұрын
Nice explanation
@harimanikanta19 жыл бұрын
If the cross product is positive then point is right side to the line segment,negative then its left. But in the program its like this if(cross_product>0) return LEFT; else if(cross_product
@NiazMohammad7 жыл бұрын
I assume he meant it is on the left of the line segment, but when he mentioned to the right it is to be from the viewers i.e. our vision perspective
@lasttemplar77208 жыл бұрын
//dot product version vec2 A; vec2 B; vec2 P; vec2 dir = B-A; dir.normalize(); vec2 dirNormal = vec2(dir.y, -dir.x); //right normal, in 3D use cross product float hyperPlaneDist = dot(A(or B), dirNormal); if(dot(P, dirNormal) > hyperPlaneDist) //right side else //left side //equals = on the line float Dot (vec2 a, vec2 b) { a.x*b.x + a.y*b.y;} //cos between 2 vectors
@atiqorin10 жыл бұрын
At last I was able to watch the video. Great video. Keep up the good work.
@wildpasco4 жыл бұрын
4:40 I have a question BOP is counterclockwise, so that means POB would be clockwise. Then how do you know how to chose BOP instead of POB?
@wildpasco4 жыл бұрын
Quoted from a comment: At "A" looking in the direction of "B", where does "P" lie. Makes sense now! Thanks
@krushnnabaviskar21702 жыл бұрын
Completed ]
@gauravbhardwaj79073 жыл бұрын
How to find the convex hull of the points using the directions of the points.
@xof82565 жыл бұрын
Cauvery Emporium, Was this a snapshot from the map of Mysuru?
@prabinpanthee19288 жыл бұрын
nice content
@atiqorin10 жыл бұрын
Something is wrong with this video. Its not playing. I tried to watch it ever since it was uploaded but it's showing error every time.
@mycodeschool10 жыл бұрын
Thanks a lot ***** .. glad that it finally played for you :)