Direction of a point from a line segment

  Рет қаралды 23,596

mycodeschool

mycodeschool

Күн бұрын

Пікірлер: 27
@SauravKumar-xg4zr
@SauravKumar-xg4zr 5 жыл бұрын
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.
@rajatmaheshwari916
@rajatmaheshwari916 8 жыл бұрын
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.
@tityseptiani8584
@tityseptiani8584 7 жыл бұрын
wait, you mean the guy who originally and mostly created the videos in this channel passed away already?
@spacesuitred3839
@spacesuitred3839 6 жыл бұрын
yea
@venkateswarans1012
@venkateswarans1012 6 жыл бұрын
No he is working in Microsoft
@AMITSHARMA-oh1nq
@AMITSHARMA-oh1nq 4 жыл бұрын
He passed away 5 years past
@unknownman1
@unknownman1 4 жыл бұрын
@@venkateswarans1012 This guy passed away, but the other guy who also makes the video is working in Google
@AbhayKumar-cz2fc
@AbhayKumar-cz2fc 9 жыл бұрын
@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.
@carmelraj2158
@carmelraj2158 8 жыл бұрын
Very good tutorial. Love it. Please upload more kind of programming with maths
@NiazMohammad
@NiazMohammad 7 жыл бұрын
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?
@dannywest749
@dannywest749 6 жыл бұрын
Niaz Mohammad At A looking in the direction of B, where does P lie?
@wildpasco
@wildpasco 4 жыл бұрын
@@dannywest749 😮😮 Makes sense now, thanks !!!!
@latifurrahmanzihad
@latifurrahmanzihad 2 жыл бұрын
Nice explanation
@harimanikanta1
@harimanikanta1 9 жыл бұрын
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
@NiazMohammad
@NiazMohammad 7 жыл бұрын
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
@lasttemplar7720
@lasttemplar7720 8 жыл бұрын
//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
@atiqorin
@atiqorin 10 жыл бұрын
At last I was able to watch the video. Great video. Keep up the good work.
@wildpasco
@wildpasco 4 жыл бұрын
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?
@wildpasco
@wildpasco 4 жыл бұрын
Quoted from a comment: At "A" looking in the direction of "B", where does "P" lie. Makes sense now! Thanks
@krushnnabaviskar2170
@krushnnabaviskar2170 2 жыл бұрын
Completed ]
@gauravbhardwaj7907
@gauravbhardwaj7907 3 жыл бұрын
How to find the convex hull of the points using the directions of the points.
@xof8256
@xof8256 5 жыл бұрын
Cauvery Emporium, Was this a snapshot from the map of Mysuru?
@prabinpanthee1928
@prabinpanthee1928 8 жыл бұрын
nice content
@atiqorin
@atiqorin 10 жыл бұрын
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.
@mycodeschool
@mycodeschool 10 жыл бұрын
Thanks a lot ***** .. glad that it finally played for you :)
@akshatrb
@akshatrb 3 жыл бұрын
Is this humblefool's voice?
@Bread_Cheeze
@Bread_Cheeze 4 жыл бұрын
i wish this was longe like 20:00 more lol
The Rubik's Cube is a Calculator
13:53
TheGrayCuber
Рет қаралды 36 М.
Check if two line segments intersect
12:06
Techdose
Рет қаралды 58 М.
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 11 МЛН
I Turned My Mom into Anxiety Mode! 😆💥 #prank #familyfun #funny
00:32
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 33 МЛН
Let's Invent Two-Dimensional Multiplication
34:29
Wrath of Math
Рет қаралды 18 М.
Area of polygon
13:58
mycodeschool
Рет қаралды 40 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,5 МЛН
Hashing Algorithms and Security - Computerphile
8:12
Computerphile
Рет қаралды 1,5 МЛН
Check if a binary tree is binary search tree or not
16:30
mycodeschool
Рет қаралды 379 М.
Why is the speed of light what it is? Maxwell equations visualized
13:19
Distance between a point and a line (vectors) (KristaKingMath)
8:52
How We’re Fooled By Statistics
7:38
Veritasium
Рет қаралды 3,6 МЛН
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 11 МЛН