I want to use MetaPost to draw a right angle BAC. A = (20,30), B = (0,0), the top of the angle is point A.
How can I compute the coordinate of point C?

|
You can use
|
||||
|
|
|
run with
|
|||
|
Just 4 fun with PSTricks:
Descriptions:
|
|||||
|
|
First of all you understand that there are infinite point that are perpindicular to AB. So actually you are looking for a line. To find it, just assume the vector AB with coordinates To find vector coordinates you just apply
So choose an
Edit: I saw you changed your question. In that way you will have a new line with same slope but with different intercept. So your line will be something like
with
So your new line is
Again for every |
||||
|
|
A. – 比尔盖子 Nov 3 '12 at 12:22Bis at origin, you can haveCat (-20,30) or (20,-30) based onA's coordinate. – mythealias Nov 3 '12 at 12:36BAC. – 比尔盖子 Nov 3 '12 at 12:41