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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:08:00+00:00 2026-05-15T21:08:00+00:00

Given a point (x1, y1) and an equation for a line (y=mx+c), I need

  • 0

Given a point (x1, y1) and an equation for a line (y=mx+c), I need some pseudocode for determining the point (x2, y2) that is a reflection of the first point across the line. Spent about an hour trying to figure it out with no luck!

See here for a visualization – http://www.analyzemath.com/Geometry/Reflection/Reflection.html

  • 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-15T21:08:00+00:00Added an answer on May 15, 2026 at 9:08 pm

    Ok, I’m going to give you a cookbook method to do this. If you’re interested in how I derived it, see http://www.sdmath.com/math/geometry/reflection_across_line.html#formulasmb

    Given point (x1, y1) and a line that passes through (x2,y2) and (x3,y3), we can first define the line as y = mx + c, where:

    slope m is (y3-y2)/(x3-x2)

    y-intercept c is (x3*y2-x2*y3)/(x3-x2)

    If we want the point (x1,y1) reflected through that line, as (x4, y4), then:

    set d = (x1 + (y1 - c)*m)/(1 + m^2) and then:

    x4 = 2*d - x1
    y4 = 2*d*m - y1 + 2*c
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a table where the first column is seconds past a certain reference point
Is possible to draw a quad given its normal vector, a point that is
How can I find equation of a line or draw a line, given a
Are there any algorithms that will return the equation of a straight line from
Reviewing for midterm, need some help with the following: Given the points p0 =
I'm trying to find rows which are within ____meters from the given point. THis
For given floating point numbers x and a , I would like to compute
Given a floating point number, I'm looking to get a String representation of a
Someone can point me reliable method to run given application in different session of
Given N points in a 3D space, how to find the smallest sphere that

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.