sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Calculating angle between a line and North

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    2 Posts 2 Posters 276 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sachi
      last edited by

      Dear all,

      I need to calculate the angle between North and a line connecting two latlong points. I have number of pairs(about 50) latlong points. For each and every case, i need to calculate the angle between North and the line.
      Later, I wished to use this, calculated angle to rotate an object.
      Do SketchUp and Ruby API has a specific function to facilitate this need?(when you have two latlong points, it gives you the angle between north and the line) or do you have any suggestions to make this happen?

      Thank you in advance

      1 Reply Last reply Reply Quote 0
      • Jean LemireJ Offline
        Jean Lemire
        last edited by

        Hi Sachi, hi folks.

        By default, the North direction is along the green axis. If you did not change it, measure the angle between your line and the green axis.

        After clicking on the line to start the measurement procedure, slide the cursor on the protractor to get a snap from the green axis. This allows you to get the angle, even if the line doesn't intersect the green axis.

        Just ideas.

        Jean (Johnny) Lemire from Repentigny, Quebec, Canada.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement