API Reference > imodeljs-frontend > Views > ViewRect > initFromPoints initFromPoints Method Initialize this ViewRect from two points. initFromPoints(topLeft: XAndY, bottomRight: XAndY): void Parameter Type Description topLeft XAndY The top-left corner. bottomRight XAndY The bottom-right corner. Returns - void Defined in core/frontend/src/ViewRect.ts Line 56 Last Updated: 15 June, 2021