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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:18:51+00:00 2026-05-23T01:18:51+00:00

I have a need to calculate the adjacent angle of a right angle triangle

  • 0

I have a need to calculate the adjacent angle of a right angle triangle formed by a rectangle that is dictated by two sets of points. My plan is to use offset() on two elements to get absolute position co-ordinates, then determine the internal angle from the bottom left corner of this implied box so that i may rotate a thin rectangle element using css rotate.

Possible?

The only part i wouldn’t know how to do right off the bat is the trigonometry syntax, and whether i need an external library for that.

*Note: I do understand that css rotate would rotate around the center of the element, so i would have to shift the rectangle over to compensate.

  • 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-23T01:18:52+00:00Added an answer on May 23, 2026 at 1:18 am

    The answer lies not in jQuery, but in JavaScript. JavaScript has a Math object which contains sin, cos, tan and other trigonometry and math-related things.

    For example, to calculate the sine of 45 degrees:

    var degrees=45;
    var radians=degrees*Math.PI/180;
    var sine=Math.sin(radians);
    alert("sin("+degrees+" deg) is roughly equal to "+sine);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two HTML input boxes, that need to calculate the time difference in
I need to calculate the number of seconds that have passed between two events
I have three X/Y points that form a parabola. I simply need to calculate
Hi I have the need to calculate the distance between two points having the
I have two system calls GetSystemTime() and GetThreadTimes() that I need to calculate the
I have two float values, 'a' and 'b' . I need to calculate the
I have need for a function pointer that takes two arguments and returns a
I have a string 0AAE0000463130004144430000 and I need to calculate the two's complement checksum
I have a set a data that I need to calculate their consecutive mean
I have 2 points in X,Y + Rotation and I need to calculate 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.