Skip to content

Commit f95a09a

Browse files
committed
change lang
1 parent 0df550b commit f95a09a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v2/blob/line_cross.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func getOrientation(Px, Py, Qx, Qy, Rx, Ry int) PointsOrientation {
3535
if val > 0 {
3636
return Clockwise
3737
}
38-
return CounterClockwise // Против часовой стрелки
38+
return CounterClockwise // if it's neither collinear nor clockwise
3939
}
4040

4141
// isIntersects Checks if segments intersect each other
@@ -241,7 +241,7 @@ func (b *KalmanBlobie) IsCrossedTheObliqueLine(leftX, leftY, rightX, rightY int,
241241
// First segment is: P1 = (b.Track[prevFrame].X, b.Track[prevFrame].Y), Q1 = (b.Track[currFrame].X, b.Track[currFrame].Y)
242242
// Second segment is: P2 = (leftX, leftY), Q2 = (rightX, rightY)
243243
if isIntersects(b.Track[prevFrame].X, b.Track[prevFrame].Y, b.Track[currFrame].X, b.Track[currFrame].Y, leftX, leftY, rightX, rightY) {
244-
244+
245245
if direction {
246246
if b.Track[currFrame].Y > b.Track[prevFrame].Y { // TO us
247247
b.crossedLine = true

0 commit comments

Comments
 (0)