API Reference > imodeljs-frontend > Views > ViewState > setRotation setRotation MethodAbstract Change the rotation of the view. setRotation(viewRot: Matrix3d): void note viewRot must be ortho-normal. For 2d views, only the rotation angle about the z axis is used. Parameter Type Description viewRot Matrix3d Returns - void Defined in core/frontend/src/ViewState.ts Line 397 Last Updated: 12 June, 2024