Direction of a point from a line segment

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

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 7 жыл бұрын
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
@carmelraj2158
@carmelraj2158 8 жыл бұрын
Very good tutorial. Love it. Please upload more kind of programming with maths
@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.
@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 !!!!
@harimanikanta1
@harimanikanta1 10 жыл бұрын
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
@atiqorin
@atiqorin 10 жыл бұрын
At last I was able to watch the video. Great video. Keep up the good work.
@latifurrahmanzihad
@latifurrahmanzihad 2 жыл бұрын
Nice explanation
@xof8256
@xof8256 5 жыл бұрын
Cauvery Emporium, Was this a snapshot from the map of Mysuru?
@gauravbhardwaj7907
@gauravbhardwaj7907 3 жыл бұрын
How to find the convex hull of the points using the directions of the points.
@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
@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
@prabinpanthee1928
@prabinpanthee1928 8 жыл бұрын
nice content
@akshatrb
@akshatrb 3 жыл бұрын
Is this humblefool's voice?
@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 :)
@krushnnabaviskar2170
@krushnnabaviskar2170 2 жыл бұрын
Completed ]
@Bread_Cheeze
@Bread_Cheeze 4 жыл бұрын
i wish this was longe like 20:00 more lol
Area of polygon
13:58
mycodeschool
Рет қаралды 40 М.
GCD using Euclid's algorithm
15:33
mycodeschool
Рет қаралды 64 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 167 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 11 МЛН
Distance between a point and a line (vectors) (KristaKingMath)
8:52
Check if two line segments intersect
12:06
Techdose
Рет қаралды 58 М.
Everything You Need to Know About VECTORS
17:42
FloatyMonkey
Рет қаралды 1,2 МЛН
Prime factorization of a number
11:47
mycodeschool
Рет қаралды 89 М.
Gamedev Maths: point in triangle
3:54
Sebastian Lague
Рет қаралды 87 М.
Check if a binary tree is binary search tree or not
16:30
mycodeschool
Рет қаралды 380 М.
Analysis of quicksort
20:17
mycodeschool
Рет қаралды 311 М.
Finding Prime numbers - Sieve of Eratosthenes
9:54
mycodeschool
Рет қаралды 308 М.
The Perfect Road for a Square Wheel and How to Design It
26:45
Morphocular
Рет қаралды 1,3 МЛН
Quicksort algorithm
20:39
mycodeschool
Рет қаралды 1,8 МЛН