Skip to content

Commit d89b977

Browse files
committed
documentation
1 parent 2754435 commit d89b977

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WeavingRadonJava/src/main/java/com/marginallyclever/weavingradon/core/RadonTransform.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,11 @@ public double testIntersection(LoomThread thread, int theta, int r) {
140140
}
141141
return 0;
142142
}
143-
Vector2d intersection = findIntersection(thread, theta, r);
144143

144+
// is there an intersection?
145+
Vector2d intersection = findIntersection(thread, theta, r);
145146
if(intersection == null) return 0;
147+
// is the intersection inside the circle?
146148
if(intersection.lengthSquared() >= radius*radius) return 0;
147149

148150
// the intensity at the intersection depends on the relative angle of the two lines.

0 commit comments

Comments
 (0)