Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Equation For Specific Line Length Needed
#9
Ah yes, when my = heroY then the difference is 0 and will get division by 0 error, unless _ATAN2() can "tolerate" that condition which is possible if _ATAN2() were good because that is likely problem. So test my code and see if throws error when mouse is level with HeroY.

Update: Yeah, seems OK when my = HeroY so _ATAN2() can handle 0 in the 2nd argument. It has no problem drawing horizontal swords.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
RE: Equation For Specific Line Length Needed - by bplus - 08-17-2022, 05:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Fibonacci Help needed! Unseen Machine 18 1,408 12-26-2025, 09:05 PM
Last Post: Petr
  Setting Line _RGB colours PhilOfPerth 10 1,974 11-03-2024, 05:37 AM
Last Post: PhilOfPerth
  help needed BloodyHash 9 1,848 05-01-2024, 08:11 PM
Last Post: TerryRitchie
  Loading font from memory help needed... Dav 6 1,412 09-16-2023, 04:03 PM
Last Post: SMcNeill
  Having trouble Windows command line SORT via SHELL GTC 19 4,453 08-26-2023, 04:19 AM
Last Post: GTC

Forum Jump:


Users browsing this thread: 1 Guest(s)