Creates a Rotation instance with the given yaw and pitch.
This is an internal factory method used by DevCore implementations.
a new Rotation instance
the yaw angle in degrees
the pitch angle in degrees