Jump to content
Sign in to follow this  
Lakes

Calc a set of Points between X,Y to X1, Y1

Recommended Posts

Lakes

I want to plot a set of points for a diagonal line.

I`ve seen an equation to do this posted here, but I can`t find it now of course.... :)

Thanks.


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites
Paulie

I want to plot a set of points for a diagonal line.

I`ve seen an equation to do this posted here, but I can`t find it now of course.... :)

Thanks.

You want the distance between them?

Or do you want to find points that fall on the line?

y=mx+b

I could be of more help if you elaborated.

Share this post


Link to post
Share on other sites
Lakes

You want the distance between them?

Or do you want to find points that fall on the line?

y=mx+b

I could be of more help if you elaborated.

Sorry, yes, points that fall in the line, ie to plot a line say, from 0,0 to 100,100 with 25 points.

Thanks.

Edited by Lakes

2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites
Paulie

Sorry, yes, points that fall in the line, ie to plot a line say, from 0,0 to 100,100 with 25 points.

Thanks.

well, wouldn't there be infinitely many points on the line?

(Don't think you can have fractions of a pixel, but there is at least 100 points on it...)

Which 25 points do you want?

if you want a GUI that actually plots equations for you, someone made one and its in example scripts.

Edited by Paulie

Share this post


Link to post
Share on other sites
Lakes

well, wouldn't there be infinitely many points on the line?

(Don't think you can have fractions of a pixel, but there is at least 100 points on it...)

Which 25 points do you want?

if you want a GUI that actually plots equations for you, someone made one and its in example scripts.

Nope, no gui required :)

25 points was a bad example, to keep it simple, number of pixels in the line, please. :D

The idea is to draw a line from a to b at any angle, but I`m not using pixels, I`m using Sprites. :D

Thanks!


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites
_Kurt

I'm excited to see your ProSpeed game, Lakes :)


Awaiting Diablo III..

Share this post


Link to post
Share on other sites
Lakes

I'm excited to see your ProSpeed game, Lakes :)

No game just yet, doing a scrolly demo first.. :D


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.