camera get heading or pitch

hello everyone,

is it possible to get the heading or pitch of the camera?
Somehting like

self.heading = base.camera.getHeading()
self.pitch = base.camera.getPitch()

thank you

Yeah, this:

self.heading = base.camera.getH()
self.pitch = base.camera.getP()

panda3d.org/manual/index.php/C … te_Changes