in vb.net or C#
How can I program this
ref:http://www.cc.gatech.edu/gvu/multimedia/nsfmmedia/graphics/elabor/math/mathfaq_lines.html
x1,y1
x2,y2
The distance between two points (x1,y1) and (x2,y2) is found by using the Pythagorean Theorem:
Distance = sqrt((x2-x1)^2 + (y2-y1)^2)
I am using pixels integer at x and y
How can I program this
ref:http://www.cc.gatech.edu/gvu/multimedia/nsfmmedia/graphics/elabor/math/mathfaq_lines.html
x1,y1
x2,y2
The distance between two points (x1,y1) and (x2,y2) is found by using the Pythagorean Theorem:
Distance = sqrt((x2-x1)^2 + (y2-y1)^2)
I am using pixels integer at x and y