Skip to content

Commit f3e4731

Browse files
committed
change: use the fact that dot-product of the unit vector is always 1.0
1 parent 4685302 commit f3e4731

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Spatial/Euclidean/Circle2D.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private double[] findParameterTs(Line2D line)
168168
var d = line.Direction;
169169
var r = this.Radius;
170170

171-
var a = d.DotProduct(d);
171+
var a = 1d;
172172
var b = 2 * (s.DotProduct(d) - d.DotProduct(cc));
173173
var c = (s - cc).DotProduct(s - cc) - r * r;
174174

0 commit comments

Comments
 (0)