Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
_Hypot() Function
#4
(06-24-2023, 07:47 PM)OldMoses Wrote: I've generally found _HYPOT to be the fastest performer too. It's also easily extended to 3D.

distance! = _HYPOT( _HYPOT( x, y), z)
Whoa, mind blown, didn't even think to do that.
There are two ways to write error-free programs; only the third one works.
QB64 Tutorial
Reply


Messages In This Thread
_Hypot() Function - by bplus - 06-24-2023, 03:38 PM
RE: _Hypot() Function - by TerryRitchie - 06-24-2023, 04:32 PM
RE: _Hypot() Function - by OldMoses - 06-24-2023, 07:47 PM
RE: _Hypot() Function - by TerryRitchie - 06-24-2023, 10:13 PM
RE: _Hypot() Function - by bplus - 06-25-2023, 11:26 PM
RE: _Hypot() Function - by OldMoses - 06-25-2023, 11:29 PM
RE: _Hypot() Function - by bplus - 06-26-2023, 01:02 AM
RE: _Hypot() Function - by James D Jarvis - 07-13-2023, 05:09 PM



Users browsing this thread: 2 Guest(s)