-
boops boops
- Newbie | Next Rank: 10 Posts
- Posts: 2
- Joined: Sat Jan 17, 2009 1:20 pm
- Location: Amsterdam NL
Hi everyone, I'm an artist with a penchant for programming, and I'm interested in creating new computer drawing tools for artists in VB.Net. At the moment I'm trying to create a tool for smoothed freehand drawing. I've come up against a geometry/problem that maybe someone here can help me with. People on the programming forums I've tried so far seem to be too thick to answer this.
Suppose there are three points A (= Xa, Ya), B (=Xb, Yb) and C (Xc, Yc). I can work out the angle A^BC by calculating the slope of AB and subtracting slope of BC. I can calculate the slopes of lines AB and BC using ArcTan. So far, no problem.
Now if angle ^B is too acute, less than bLimit degrees, I want to move point B towards the line AC to make the angle A^B'C equal to bLimit degrees. My question is: what is the new position of point B'?
To sum up, I have the coordinates of the corners of a triangle A, B and C. Where on the perpendicular from B to AC must I put the new point B' such that angle A^BC is equal to a given angle bLimit? I can work out the lengths a, b and c and the angles of the original triangle ABC and so on, so the answer can be in terms of those.
Any takers? I'll be very grateful if you can help.
Regards, Boops boops.

Suppose there are three points A (= Xa, Ya), B (=Xb, Yb) and C (Xc, Yc). I can work out the angle A^BC by calculating the slope of AB and subtracting slope of BC. I can calculate the slopes of lines AB and BC using ArcTan. So far, no problem.
Now if angle ^B is too acute, less than bLimit degrees, I want to move point B towards the line AC to make the angle A^B'C equal to bLimit degrees. My question is: what is the new position of point B'?
To sum up, I have the coordinates of the corners of a triangle A, B and C. Where on the perpendicular from B to AC must I put the new point B' such that angle A^BC is equal to a given angle bLimit? I can work out the lengths a, b and c and the angles of the original triangle ABC and so on, so the answer can be in terms of those.
Any takers? I'll be very grateful if you can help.
Regards, Boops boops.













