]> granicus.if.org Git - graphviz/commit
replace hypotenuse calculation with call to hypot in various copies of GCarrow
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 May 2021 03:05:07 +0000 (20:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 12 May 2021 01:46:36 +0000 (18:46 -0700)
commit8c18a78c0b6cdd2808eeb16b1ccaa57320a58695
treead19b1e98476c5615e21e97f33a875745b57aeef
parent75c161da911654a7dfc5cd7bb657d74b4cbfcf03
replace hypotenuse calculation with call to hypot in various copies of GCarrow

The function hypot is available in C99 and has the potential to compute the same
operation more efficiently and with greater precision.
cmd/lefty/ws/gtk/gcanvas.c
cmd/lefty/ws/mswin32/gcanvas.c
cmd/lefty/ws/mswin32/gpcanvas.c
cmd/lefty/ws/x11/gcanvas.c
cmd/lefty/ws/x11/gpcanvas.c