setCameraRelativeToCenteredTarget method

void setCameraRelativeToCenteredTarget(
  1. Coordinates targetCoords,
  2. Point3d targetHeadingPitchRollDeg,
  3. Point3d cameraHeadingPitchDegDistanceMeters
)

Set the camera relative to a target that has its own orientation.

This configures the camera with respect to a target that includes a heading/pitch/roll. The camera is positioned at the requested distance and oriented relative to the target's coordinate frame.

Parameters

  • targetCoords: (Coordinates) Target geographic coordinate.
  • targetHeadingPitchRollDeg: (Point3d) Target orientation (deg).
  • cameraHeadingPitchDegDistanceMeters: (Point3d) Camera heading/pitch (deg) and distance (meters) from the target.

See also:

Implementation

void setCameraRelativeToCenteredTarget(
  final Coordinates targetCoords,
  final Point3d targetHeadingPitchRollDeg,
  final Point3d cameraHeadingPitchDegDistanceMeters,
) {
  objectMethod(
    _pointerId,
    'MapCamera',
    'setCameraRelativeToCenteredTarget',
    args: <String, Object>{
      'coordinates': targetCoords,
      'tuple3D1': targetHeadingPitchRollDeg,
      'tuple3D2': cameraHeadingPitchDegDistanceMeters,
    },
  );
}