Skip to content
  • Agata Cacko's avatar
    Add cropLineToRect() to KisAlgebra2D · dcbbabc9
    Agata Cacko authored and Halla Rempt's avatar Halla Rempt committed
    It differs from intersectLineRect because it doesn't return
    a bool, but just changes the line to an empty line, if
    the line doesn't intersect with the rectangle.
    This is useful for drawing inside a viewport etc.
    dcbbabc9