withPitchBearing method

FreeCameraOptions withPitchBearing(
  1. double pitch,
  2. double bearing
)

Returns options with the camera turned to a pitch and a bearing in degrees. The position does not change.

Implementation

FreeCameraOptions withPitchBearing(double pitch, double bearing) => copyWith(
  orientation: _orientationFromPitchBearing(
    pitch * _degToRad,
    -bearing * _degToRad,
  ),
);