CameraYaw method

void CameraYaw(
  1. Camera3DD camera,
  2. num angle,
  3. bool rotateAroundTarget
)

Rotates camera around its up vector by angle radians.

Yaw is "looking left and right".

If rotateAroundTarget is true, the camera orbits its target; otherwise it rotates in place.

Implementation

void CameraYaw(
  Camera3DD camera,
  num angle,
  bool rotateAroundTarget,
) => run(
  () => _debugLabels.CameraYaw(camera, angle, rotateAroundTarget),
  () => _flat.CameraYaw(
    $.Camera3D$.Ref1(camera),
    angle.toDouble(),
    rotateAroundTarget,
  ),
);