Announcement

Collapse
No announcement yet.

Degree of angle?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Degree of angle?

    Here I have a question of can we code certain indicators ( for signals) based on the degree or angle of a certain indicator or indicators? (did that sound right?) LOL....

    Fibbgann
    Excellent book on JavaScript for beginners

  • #2
    I'm pretty sure you can...

    I'm pretty sure you can accomplish this...

    Misc. Formulas


    · Calculate the angle (in degrees) of a slope:

    //Assume a 30% slope (rise over run);

    nSlope = 0.30;

    nAngle = Math.atan( nSlope ) / ( Math.PI/180 );

    nAngle now equals approx 16.67 Degrees.

    · Calculate the slope (in %) from an angle:

    //Assume a 20-degree angle

    nAngle = 20.0;

    nSlope = Math.tan( nAngle * (Math.PI/180) );

    nSlope now equals 0.3639 or a 36.39% slope.

    Pulled from Chris' help file..

    Brad
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      For example...

      If I have two MA's you want to determine their angles?

      Yes, sure this is possible.

      Or do you mean something else?

      Garth
      Garth

      Comment


      • #4
        Try to apply this to the efs, Dloomis and I are working on. An easy explaination is (a cheap one at this point until I am done doing all the math) !2 O'clock to 6 O'Clock.

        Degree's

        12 being 0

        3 being 90

        6 being 180



        Fibbgann
        Last edited by FibbGann; 12-13-2003, 08:16 PM.
        Excellent book on JavaScript for beginners

        Comment

        Working...
        X