Results 1 to 2 of 2

Thread: How to use QVector3D for (x,y and z) coordinate system for Azimuth Angle b/w x,y ,z

  1. #1
    Join Date
    Jan 2019
    Posts
    4
    Thanks
    1
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question How to use QVector3D for (x,y and z) coordinate system for Azimuth Angle b/w x,y ,z

    Hello All,


    QVector3D point(
    qCos(qDegreesToRadians(azimuth)) * m_tmpTargetDist,
    qSin(qDegreesToRadians(azimuth)) * m_tmpTargetDist,
    0.f);
    m_points.append(point);
    Here,
    qCos represent x-axis
    qSin represent y-axis and

    How to represent z-axis on QVector3D point() as mentioned above format?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,523
    Thanks
    13
    Thanked 1,575 Times in 1,504 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to use QVector3D for (x,y and z) coordinate system for Azimuth Angle b/w x,y

    Do you have an elevation angle or an absolute number?
    Is the m_tmpTargetDist the distance from the origin to the point projected on to the x,y plane? (Your work seems to imply that)
    Alternatively, is it the straight line distance from the origin to the 3d point (slant distance)? (your current x,y coordinates will not be correct in most cases)

Similar Threads

  1. How to plot a single x-Coordinate value on QVector3D
    By RajenderReddyPatlolla in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2019, 06:28
  2. Coordinate space vs coordinate system
    By kangaba in forum General Programming
    Replies: 0
    Last Post: 10th December 2013, 14:38
  3. qt coordinate system
    By qtlearner123 in forum Newbie
    Replies: 1
    Last Post: 17th April 2012, 15:20
  4. coordinate system
    By Wojtek.wk in forum Newbie
    Replies: 7
    Last Post: 12th April 2010, 13:47
  5. The coordinate system
    By avis_phoenix in forum Qt Programming
    Replies: 1
    Last Post: 28th July 2008, 12:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.