HerbertMunch
New Member
Im utterly sick of eagle, so ive started work on a pcb editor and have now got side tracked on the graphics editor element of the project.
Does anyone know how to calculate a point that is a specified distance away from another along a line?
Ive defined a straight line class in c# that can encapsulate all the maths and its all working nicely appart from this.
In the rest of the class, i use y=mx+c and pyt. a² = b² + c² forumulas to calculate length, x from y, y from x etc.
Everything on the web talks about finding the distance between two points, but I allready know how to do that, i want to find a point, given a distance!
Many thanks,
Chris
Does anyone know how to calculate a point that is a specified distance away from another along a line?
Ive defined a straight line class in c# that can encapsulate all the maths and its all working nicely appart from this.
In the rest of the class, i use y=mx+c and pyt. a² = b² + c² forumulas to calculate length, x from y, y from x etc.
Everything on the web talks about finding the distance between two points, but I allready know how to do that, i want to find a point, given a distance!
Many thanks,
Chris