In the user interface of QGIS I have the option to draw lines with the "Advances Digitizing tool", where I can enter coordinates of a point to set the first vertex. To set the second vertex I can now enter the angle and distance and the "Advances Digitizing Tool" sets the point automatically with the fitting coordinates.
Is it possible to do the same thing using PyQGIS? Drawing a line not from a list of points, but from one point, angle and distance? (I'm a total beginner using PyQGIS.)