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 7671643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:06:22+00:00 2026-05-31T16:06:22+00:00

Im not good at math, I could find everything so far, but not this

  • 0

Im not good at math, I could find everything so far, but not this one.
And I just cant figure it out. I think Im just not seeing it.
Im calculating directions, two circles collide, one has an incoming direction,
and needs to get an outgoing direction.

So far I know how to get the collision point and I can calculate the incoming/outgoing angle alfa. (Calculating the angle between two lines without having to calculate the slope? (Java))

Im stuck on constructing the outgoing line and retrieving the m or a ( y = ax + b ).

enter image description here

So, from the picture, I know y, i, alfa and the point where all lines intersect (not marked, sorry).

Could anyone help me out? Im programming in Java.

  • 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-05-31T16:06:23+00:00Added an answer on May 31, 2026 at 4:06 pm

    If momentum is conserved during a collision with a horizontal boundary, the collision will just flip the sign of m. That is the m value afterward is -1 times the m value before.

    Suppose the equation of the original line is y=mx+c and the equation of the line after the collision is y=-mx+b. At the intersection point, the x and y values are the same.

    To avoid confusion later, we’ll call the x and y-values of the collision point (X,Y) not (x,y)

    At the intersection the line equations for both lines hold (for x=X, y=Y). So,

    Y = mX+c = -mX+b.
    => mX+c+mX = b (adding mX to both sides)
    => 2mX+c = b (collecting the terms in m)
    

    So the intercept of the second line (which you referred to as “m or a” in your question) is 2mX+c, where X is the x-position at which the collision occurs. Hence the equation of the second line is:

    y = -mx + (2mX + c)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not a mathematician. I enjoy a good math puzzle, but I admit
Sorry, I am not good at math But is there a mathematical formula that
I'm not good with JavaScript, and this is Google's code. I'm getting a object
I am not good at jsp but I wondered what can cause such a
Pretty straightforward stuff, here -- I'm just not good enough with mysql to understand
I am learning to use the Dvorak keyboad layout, but I am not good
Okay, I think I might be over-complicating this issue but I truly am stuck.
I was hoping someone that is good with math and loops could help me
Hello good people of stackoverflow, this is a conceptual question and could possibly belong
I'm not very good at math( and i never was ) and I've a

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.