Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:09:00+00:00 2026-06-06T21:09:00+00:00

I calculated a direction (you can call it a vector if you want, but

  • 0

I calculated a direction (you can call it a vector if you want, but it’s really a slope…) and I want to get an x value from a function given a y value.

Basically, I am trying to draw a line from an x, y value to an x, y value and I have the direction.

Say, given a slope/direction of 1/4 (rise over run), a starting point of 200, and an ending y value of 250, how would I find x?

I know this is really basic highschool algebra, but for some reason I can’t conceptualize it…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:09:02+00:00Added an answer on June 6, 2026 at 9:09 pm

    If the end points are A(x1,y1) and B(x2,y2), the slope is defined as:

    m = ( y2 - y1 ) / ( x2 - x1 )
    

    Since you do have the slope, you need to have at least three coordinates in order to be able to compute the remaining one.

    From your question I assume you want to compute y2. Therefore, you need to have x1, y1, and x2.

    Example:

    m = 1/4
    A(1,1)
    B(9,y2)
    ---
    y2 = ?
    
    m = ( y2 - y1 ) / ( x2 - x1 ) 
    y2 - y1 = m * ( x2 - x1 )
    y2 = m * ( x2 - x1 ) + y1
    y2 = 1/4 * ( 9 - 1 ) + 1
    y2 = 3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I essentially want to reconstruct the getTickCount() windows function so I can use it
HI All, How can I calculate direction vector of a line segment, defined by
I want to be able to calculate the direction of a line to eye
Working with box2d and cocos2d, I've calculated two vectors: one is the vector pointing
Suppose we have a numbered circle. We want to go from point A to
Really hope someone can help me or at least point me in the right
I need to calculate a percentage from a cumulative value. The percent rate to
I'm building a rating system where a user can rate something from 1-5 stars.
Can anyone point me in the direction of more detailed information about all the
For my tile-based game, I need to calculate direction based on a given point

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.