setCameraRotation method

  1. @JSExport()
JSPromise<JSAny?> setCameraRotation(
  1. JSArray<JSNumber> quaternion
)

Implementation

@JSExport()
JSPromise setCameraRotation(JSArray<JSNumber> quaternion) {
  var dartVals = quaternion.toDart;
  return viewer
      .setCameraRotation(v64.Quaternion(
          dartVals[0].toDartDouble,
          dartVals[1].toDartDouble,
          dartVals[2].toDartDouble,
          dartVals[3].toDartDouble))
      .toJS;
}