Skip to content

Ramith-D-Rodrigo/Digital-Differential-Analyzer-Algorithm-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Digital-Differential-Analyzer-Algorithm-C

DDA algorithm CLI visualization using C

How to Run

Open CLI and type the following

gcc -o dda dda.c

dda <PIXEL_COUNT> <X1_VAL> <Y1_VAL> <X2_VAL> <Y2_VAL>

Remember to Replace the following

<PIXEL_COUNT> with Coordinate system Maximum Axis Points
<X1_VAL> with X point value of the 1st point of the line
<Y1_VAL> with Y point value of the 1st point of the line
<X2_VAL> with X point value of the 2nd point of the line
<Y2_VAL> with Y point value of the 2nd point of the line\

Some Example Usages

dda 50 2 4 10 41
dda 50 0 0 0 23
dda 100 34 98 88 2
dda 100 2 10 37 45\

About

DDA algorithm CLI visualization using C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages