orientation property
Retrieves the current orientation of the camera.
Returns
- (Point4d) The current (x, y, z, w) orientation of the camera.
Also see:
- position for retrieving the camera's 3D position.
- generatePositionAndOrientation for computing candidate camera placements.
Implementation
Point4d get orientation {
final OperationResult resultString = objectMethod(
_pointerId,
'MapCamera',
'getOrientation',
);
return Point4d.fromJson(resultString['result']);
}
Set camera orientation using a quaternion.
Parameters
orient: (Point4d) Quaternion expressed as (x, y, z, w).
Implementation
set orientation(final Point4d orient) {
objectMethod(_pointerId, 'MapCamera', 'setOrientation', args: orient);
}