orientation property
Retrieves the current orientation of the camera.
Returns
- A Point4d representing the current (x,y,z,w) orientation of the camera.
Throws
- An exception if it fails.
Implementation
Point4d get orientation {
final OperationResult resultString = objectMethod(
_pointerId,
'MapCamera',
'getOrientation',
);
return Point4d.fromJson(resultString['result']);
}
Sets the camera's orientation using quaternion values.
Parameters
- IN orient A Point4d representing the new (x,y,z,w) orientation of the camera.
Throws
- An exception if it fails.
Implementation
set orientation(final Point4d orient) {
objectMethod(_pointerId, 'MapCamera', 'setOrientation', args: orient);
}