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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:43:22+00:00 2026-05-25T00:43:22+00:00

In the last week I tried to calculate angle between three points – first

  • 0

In the last week I tried to calculate angle between three points –
first I needed to get the points = easy
than to calculate the angle (not relatively) = easy too

and now I need to get the angle relative to the graph – the problem is that I dont know how (I am sure this is easy too).

PI = 3.141592654
A(2004,227)
B(2005,18)
C(2006,25)

Here’s the function/formula to calculate the Angle >

arctan((Xb - Xa)/(Ya - Yb)) * (180/PI) + arctan((Xc - Xb)/(Yc - Yb))  * (180/PI)

What do I need to add to the formula so it will be relatively to the graph? (I want an explanation too please)

Here’s the graph:
enter image description here

Thank you very much!

  • 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-25T00:43:23+00:00Added an answer on May 25, 2026 at 12:43 am

    Edit : Here is the full code of my sub to compute it.

    Public Sub Question()
    
    Dim Pi As Double
    Pi = 3.141592654
    Dim myChart As ChartObject
    
    For Each myChart In ActiveSheet.ChartObjects
        Dim xLength As Double
        Dim yLength As Double
        xLength = myChart.Chart.Axes(1).MaximumScale - myChart.Chart.Axes(1).MinimumScale
        yLength = myChart.Chart.Axes(2).MaximumScale - myChart.Chart.Axes(2).MinimumScale
    
        xLength = xLength / myChart.Chart.PlotArea.Width
        yLength = yLength / myChart.Chart.PlotArea.Height
    
        Dim goodScale As Double
        goodScale = xLength / yLength
    
        Dim v1x As Double
        Dim v1y As Double
        Dim v2x As Double
        Dim v2y As Double
        Dim Angle As Double
    
        v1x = 2005 - 2004
        v1y = 18 - 227
    
        v2x = 2006 - 2005
        v2y = 25 - 18
    
        v1y = v1y * goodScale
        v2y = v2y * goodScale
    
        Angle = (Atn(v2x / v2y) - Atn(v1x / v1y)) * (180 / Pi)
    Next
    End Sub
    

    You’ll notice I hardcoded the points in the sub, but that’s just to have a small self-sufficient code.

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

Sidebar

Related Questions

I am currently getting first day Of this week and last week values with
I installed iOS 4.2 on my 2nd-generation iPod Touch last week. I tried running
First thing you should know is that this worked on Wednesday of last week
Last week I started to write a script in Ruby. I needed to scrape
Last week we released Omniture's analytics code onto a large volume of web sites
Last week I implemented a date validation in our front end, a combination of
The last week on the ACM ICPC Mexico competition, I missed a return 0
The last week I stumbled over this paper where the authors mention on the
I've spent the last week developing code to connect to a Web Service using
I was writing some Unit tests last week for a piece of code 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.