Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: y = f(x=3) #59

Open
napster3000 opened this issue Jun 26, 2013 · 3 comments
Open

feature: y = f(x=3) #59

napster3000 opened this issue Jun 26, 2013 · 3 comments

Comments

@napster3000
Copy link

Hi,
Would be very useful the possibility to get the value of a line at a certain point.
For example, i have this line y = 4x + 23 and I would know what is its the value of "y" for "x=3". In this case y= 35 ;)

@bfoz
Copy link
Owner

bfoz commented Jun 29, 2013

That's a good idea. I'll need to think about the right way to implement it.

@napster3000
Copy link
Author

Maybe something to find the point where two line intersect

@bfoz
Copy link
Owner

bfoz commented Jul 7, 2013

One thought I've had is to implement Line#at. Then the user could use line.at(3) to get the value of y when x = 3. That seems intuitive enough, but then how should TwoPointLine#at behave? If someone is trying to find the midpoint of a line segment, they might reasonably try to use line.at(0.5), which would do the wrong thing.

I'm still thinking about this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants