Talk:Xiaolin Wu's line algorithm: Difference between revisions

m
added a section header to the first talk topic so that the table of contents (TOC) is in the correct place.
m (→‎REXX comment: re-sentencized ''FPART''.)
m (added a section header to the first talk topic so that the table of contents (TOC) is in the correct place.)
 
(4 intermediate revisions by 3 users not shown)
Line 1:
== '''C#''' solution for '''Xiaolin Wu's line algorithm''' ? ==
Any guy can give me '''Xiaolin Wu's line algorithm'''s code in C#.
Than you.
Line 63 ⟶ 64:
 
::: Once you make all numbers non-negative, FLOOR and IPART are synonymous. It's only when using negative numbers that the issue (any difference) is raised. -- [[User:Gerard Schildberger|Gerard Schildberger]] 16:51, 4 June 2012 (UTC)
 
:::: Yes, but I made some of them negative for the algorithm (just translating them to positive when they were rendered). --[[User:Rdm|Rdm]] 17:02, 4 June 2012 (UTC)
 
Concerning another issue: '''FPART'''.
Line 73 ⟶ 76:
 
Perhaps someone could find a complete/good definition of FPART in their appropriate language reference documentation. -- [[User:Gerard Schildberger|Gerard Schildberger]] 16:46, 4 June 2012 (UTC)
 
: The integer part and the fractional part should add together to yield your original number. --[[User:Rdm|Rdm]] 17:03, 4 June 2012 (UTC)
 
:: Tank qew. Makes sense, concise, succent. So, -0.91 it is. -- [[User:Gerard Schildberger|Gerard Schildberger]] 17:13, 4 June 2012 (UTC)
 
== Problem In Java Code ==
 
The Java code doesn't plot the line in all directions.