setCameraRelativeToTarget method
- Coordinates targetCoords,
- Point3d targetHeadingPitchRollDeg,
- Point3d cameraHeadingPitchDegDistanceMeters,
- Point3d cameraHeadingPitchRollDeg,
Set the camera relative to a target and allow arbitrary camera orientation.
This variant allows specifying an explicit camera heading/pitch/roll in addition to the camera's distance from the target.
Parameters
targetCoords: (Coordinates) Target geographic coordinate.targetHeadingPitchRollDeg: (Point3d) Target orientation (deg).cameraHeadingPitchDegDistanceMeters: (Point3d) Camera heading/pitch (deg) and distance (m).cameraHeadingPitchRollDeg: (Point3d) Camera heading/pitch/roll (deg) to orient the camera arbitrarily relative to the target.
See also:
- generatePositionAndOrientationRelativeToTarget - Computes candidate camera values without mutating the live camera.
Implementation
void setCameraRelativeToTarget(
final Coordinates targetCoords,
final Point3d targetHeadingPitchRollDeg,
final Point3d cameraHeadingPitchDegDistanceMeters,
final Point3d cameraHeadingPitchRollDeg,
) {
objectMethod(
_pointerId,
'MapCamera',
'setCameraRelativeToTarget',
args: <String, Object>{
'coordinates': targetCoords,
'tuple3D1': targetHeadingPitchRollDeg,
'tuple3D2': cameraHeadingPitchDegDistanceMeters,
'tuple3D3': cameraHeadingPitchRollDeg,
},
);
}