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

  • Home
  • SEARCH
  • 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 946383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:54:22+00:00 2026-05-15T22:54:22+00:00

I need to know how to find a vector opposite to another, but the

  • 0

I need to know how to find a vector opposite to another, but the second vector is not necessarily the same magnitude as the first, but the direction is opposite. Ex:

I made a small diagram 🙂
alt text http://img688.imageshack.us/img688/5394/prettydiagram.png

Basically if I have the coordinates of A(-150,150) and I want B to be opposite, and have a magnitude of only 2, I would want to obtain B(-200,-150). What I am doing is making an application that can draw cubic bezier shapes and I noticed with lots of these, there are bezier handles and modifying one handle cause the other one to move too. How could this be done?

Thanks

  • 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-15T22:54:22+00:00Added an answer on May 15, 2026 at 10:54 pm

    It is simple, really.

    B = -1/2 * A, or B.x = -1/2 * A.x, B.y = -1/2 * A.y, B.z = -1/2 * A.z. This talks about vectors, btw. You would want to shift the result. The formula is dead-simple. What am I missing?

    EDIT

    Your app knows the red dot location (let’s abbreviate it as R vector). Your app also knows the A vector. It needs to find the B vector that is on the same line as AR, on the other side of R as A, and such as A is twice as far than B. Well, in that case:

    • Temporarily calculate vector V = (A - R)
    • Now (It is simple 🙂 ): B = R - 0.5 * V.

    It is that simple, I promise. The capital letters represent vectors, which are generally 2-tuples or 3-tuples of real numbers (depending on whether you work in 2D or 3D).

    There is not much to this, really. Any questions?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I couldn't find a straight answer to my question and need to know it
I know how to find what I need from XML using XPath. The syntax
I know that to find all the .h files I need to use: find
I need to find an easy way to know if the local machine's 'automatically
I need to know how to use JavaScript to find out from which file
I have a vector of ordered container classes where I need to know the
Need to know this so that i could send DTMF and that is going
Need to know which event triggered after text selection done in Apple iPad. It
i need to know if a svg path can be converted to svg polyline
I need to know if there is any way I can do the following

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.