Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
Math: Finding a point that is perpendicular to another point.
Print
Pages: [
1
]
Author
Topic: Math: Finding a point that is perpendicular to another point. (Read 3021 times)
0 Members and 2 Guests are viewing this topic.
aaranaf
Newbie
Posts: 4
Math: Finding a point that is perpendicular to another point.
«
on:
August 03, 2013, 01:23:52 am »
So here's what I want to do. I want to find the point in 2d-space for C.
I have the point A and B and the distance from B to C.
I know C is perpendicular to B. If someone could point me in the right direction on this it would be greatly appreciated.
Logged
The Hatchet
Full Member
Posts: 135
Re: Math: Finding a point that is perpendicular to another point.
«
Reply #1 on:
August 03, 2013, 02:08:38 am »
Go to google and put in "find point perpendicular to line"
Logged
rgrant1993
Newbie
Posts: 12
Re: Math: Finding a point that is perpendicular to another point.
«
Reply #2 on:
August 03, 2013, 08:25:55 pm »
We need to know the data you have recorded inorder to know the data we need to find.
Logged
Grimshaw
Hero Member
Posts: 631
Nephilim SDK
Re: Math: Finding a point that is perpendicular to another point.
«
Reply #3 on:
August 03, 2013, 08:37:41 pm »
(direction from A to B)
V = B - A
V' = normalize(V)
(vector orthogonal to V' - perpendicular)
O = (-V'y, V'x)
(finally find point C by going from B in the orthogonal direction)
C = B + O * distance
I am a little fuzzy right now but if something is wrong here ill get back to you
Logged
Indie game developer -
http://daevatheory.com/
Engine -
https://github.com/DevilWithin/Nephilim
http://www.packtpub.com/sfml-game-development/book
gostron
Jr. Member
Posts: 53
Re: Math: Finding a point that is perpendicular to another point.
«
Reply #4 on:
August 05, 2013, 01:02:44 pm »
May I add that knowing the distance and that it's perpendicular gives your two points, one for each side.
for a vector defined by (a,b) an orthogonal vector would be (-b, a) (so I do agree with Grimshaw, just to say it a bit differently)
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
Math: Finding a point that is perpendicular to another point.
anything