In this circumstance, pitch and yaw are easier to keep in degrees, personally. But for improved performance, by all means, translate this to go to radians(just put pitch or yaw instead of (pitch or yaw) * PI / 180)

Follow up: remember when you're talking about cameras, then getting any of: forward, right & up vectors from the orientation is the same as converting it to a matrix which you'll be most likely doing anyway. Of course this is true for any orientation that is going to get converted to matrix form.

Then you want to get the block you click on. You create yourself this vector from your camera's yaw and pitch, and then raycast the vector from the mid of your camera's / eye's position forward, until it hits a block (or doesn't), and then you can mine it...

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org