79139654

Date: 2024-10-30 04:29:09
Score: 1.5
Natty:
Report link

I'm wondering if this algorithm works correctly for negative coordinate values. I set a starting point at (-5, -2) and an endpoint at (-2, -6), but using the same method of incrementing 𝑥 or 𝑦 based on the slope 𝑚 gives me a line that never seems to actually converge to the endpoint. Someone, please prove me wrong.

I know you might say that physical graphics typically operate in the first quadrant of the Cartesian coordinate system.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Md. Muhtadir Rahman