• Creates an axis-aligned OrientedBox with given location and dimensions.

    Parameters

    • reference: null | CoordinateReference

      the reference in which the oriented box is defined. Due to the cartesian nature of this shape, it is not available for geodetic references

    • location: Vector3

      the location of the corner of the box with minimal x, y and z values

    • dimensions: Vector3

      the size of the oriented box

    Returns OrientedBox

    Since

    2021.1

  • Creates an OrientedBox resulting from a base box with given location and dimensions, transformed by the given transformation.

    const center = createPoint(getReference("CRS:84"), [4, 51, 0]);
    const width = 10;
    const depth = 12;
    const height = 15;
    const transformation = createTransformationFromGeoLocation(center);

    const centeredBox = createOrientedBox(transformation, {x: -width / 2, y: -depth / 2, z: -height / 2}, {x: width, y: depth, z: height});

    Parameters

    • transformation: Affine3DTransformation

      the transformation applied to the base box to get the resulting box

    • location: Vector3

      the location of the corner of the base box with minimal x, y and z values

    • dimensions: Vector3

      the size of the base box

    Returns OrientedBox

    Since

    2021.1