13
votes
2answers
206 views

Calculate the intersection between two intervals on the same circle

I want to calculate the ratio of intersection between two intervals; the length of the intersection divided by the length of the shorter interval. If two intervals do not intersect, the ratio is 0. ...
7
votes
1answer
501 views

C# code to derive tangential points between two circles to create a trapezoid

These are the steps to determine coordinates of the 4 points (P1, P2, P3, P4) that make up a tangential trapezoid connecting to circles. Another way of looking at it is to think of the tangential ...
6
votes
1answer
245 views

Trying to implement a collection class to represent a Path of Segments

I've posted a few times over on stack.overflow recently and have been advised to try here to sort out a good code implementation once and for all. I'm trying to implement a custom made 2D geometry ...