API Reference > geometry-core > CartesianGeometry > Range2d > createXYXYOrCorrectToNull createXYXYOrCorrectToNull MethodStatic Create a box with 2 pairs of xy candidates. If any direction has order flip, create null. createXYXYOrCorrectToNull<T extends Range2d>(xA: number, yA: number, xB: number, yB: number, result?: T): T extends Range2d Parameter Type Description xA number yA number xB number yB number result T Returns - T extends Range2d Defined in core/geometry/src/geometry3d/Range.ts Line 1286 Last Updated: 13 June, 2024