PDA

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



RajenderReddyPatlolla
6th February 2019, 06:22
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?

ChrisW67
9th February 2019, 03:23
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)