Skip to content

v2.0.9 - Extend interface

Compare
Choose a tag to compare
@LdDl LdDl released this 02 Apr 18:47
· 24 commits to master since this release

Added new methods to Blob's interface:

  1. IsCrossedTheLine(vertical, leftX, rightX int, direction bool) bool - Checks if blob crossed the HORIZONTAL line
  2. IsCrossedTheLineWithShift(vertical, leftX, rightX int, direction bool, shift int) bool - Checks if blob crossed the HORIZONTAL line with shifting option