]> granicus.if.org Git - graphviz/commit
replace hypotenuse calculation arrow_type_dot with a call to hypot
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 5 May 2021 03:39:43 +0000 (20:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 12 May 2021 01:46:36 +0000 (18:46 -0700)
commit685048283ac5c3192baf3a5ef06f60a1a0d615ef
treee2c8b6bec4655de28c5003a90f1bac3006833e9f
parentba1564c2ccfb2b63f333d586ba45f985daa09bc8
replace hypotenuse calculation arrow_type_dot with a call to hypot

The function hypot is available in C99 and has the potential to compute the same
operation more efficiently and with greater precision.
lib/common/arrows.c