Line Segment Intersection

Rectangle Areas

Point B: ({userPoint.x}, {userPoint.y})

redArea}>

Blue Rectangle

Corner: ({blueRect.x1}, {blueRect.y1})

Width = |{blueRect.x1} - {userPoint.x}| = {blueWidth}

Height = |{blueRect.y1} - {userPoint.y}| = {blueHeight}

Area = {blueWidth} x {blueHeight} = {blueArea}

blueArea}>

Red Rectangle

Corner: ({redRect.x1}, {redRect.y1})

Width = |{redRect.x1} - {userPoint.x}| = {redWidth}

Height = |{redRect.y1} - {userPoint.y}| = {redHeight}

Area = {redWidth} x {redHeight} = {redArea}