API Reference > imodeljs-common > Geometry > QPoint2d > fromScalars fromScalars MethodStatic Create a QPoint2d directly from x and y components. fromScalars(x: number, y: number): QPoint2d Parameter Type Description x number Must be an integer in the range [0, 0xffff] y number Must be an integer in the range [0, 0xffff] Returns - QPoint2d Defined in core/common/src/QPoint.ts Line 215 Last Updated: 11 June, 2024