setCameraRelativeToCenteredTarget method
- Coordinates targetCoords,
- Point3d targetHeadingPitchRollDeg,
- 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:
- generatePositionAndOrientationRelativeToCenteredTarget - Computes candidate camera values without mutating the live camera.
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,
},
);
}