Xiaolin Wu's line algorithm: Difference between revisions

m
→‎{{header|Ruby}}: kudos to Tcl
(add Ruby)
m (→‎{{header|Ruby}}: kudos to Tcl)
Line 119:
 
=={{header|Ruby}}==
{{trans|Tcl}}
<lang ruby>def ipart(n); n.truncate; end
def fpart(n); n - ipart(n); end
Anonymous user