Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Calculate perpendicular vector

I'm having a little difficulty with some matrix maths. I have 3 points P0, P1 and P2 [as in the attached drawing] and I need to find the point on the line between p0 and p1, such that the line from it to P2 is perpendicular to it.

The way I tried is to first find the angle between P0-->P1 and P0-->P2 [acos of the dot product], then from there find the lengths a, o and a using trig, from there it's simple to find the correct position but somewhere or other I'm going wrong.

I'll persevere but I wondered if there is some standard function to find that position, I imagine it must be a common thing to want to do...

Thanks in advance


Share this post

Link to post
Share on other sites

I figured it out, I had a plus instead of a minus...

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now