intersects method

bool intersects(
  1. Coordinate p0,
  2. Coordinate p1
)

Tests whether the line segment (p0-p1) intersects this hot pixel.

@param p0 the first coordinate of the line segment to test @param p1 the second coordinate of the line segment to test @return true if the line segment intersects this hot pixel

Implementation

bool intersects(Coordinate p0, Coordinate p1) {
  if (scaleFactor == 1.0) return intersectsScaled(p0, p1);

  copyScaled(p0, p0Scaled!);
  copyScaled(p1, p1Scaled!);
  return intersectsScaled(p0Scaled!, p1Scaled!);
}