We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2612b6 commit 4685302Copy full SHA for 4685302
1 file changed
src/Spatial/Euclidean/Circle2D.cs
@@ -154,13 +154,13 @@ private double[] findParameterTs(Line2D line)
154
// (p-cc)^2=r^2 (eq1)
155
// p=s+t*d (eq2)
156
// , where p is the point on the line and/or circle,
157
- // c is the center of the circle,
+ // cc is the center of the circle,
158
// r is the radius of the circle,
159
// s is the starting point of the line,
160
// t is the parameter and
161
// d is the line direction.
162
// Substituting (eq2) into (eq1) yields:
163
- // ((s+t*d)-c)^2=r^2 (eq3)
+ // ((s+t*d)-cc)^2=r^2 (eq3)
164
// (eq3) reduces to the following quadratic equation: a*t^2 + b*t + c==0
165
166
var cc = this.Center.ToVector2D(); //center of circle
0 commit comments