An Affine3DTransformation contains an affine transformation that can be used to translate, scale or rotate a TileSet3DLayer

2020.0

Hierarchy (View Summary)

Constructors

Accessors

  • get inputReference(): null | CoordinateReference

    The reference of the source coordinates that are transformed.

    Returns null if unknown.

    Returns null | CoordinateReference

    2023.0

  • get outputReference(): null | CoordinateReference

    The reference of the target coordinates after transformation.

    Returns null if unknown.

    Returns null | CoordinateReference

    2023.0

  • get transformationMatrix(): number[]

    Returns the 4x4 matrix used by this transformation, in row-major order.

    Returns number[]

    2025.0

Methods

  • Transforms a point from the input reference to the output reference.

    Parameters

    • aInputPoint: Point

      the point to transform specified in the input reference

    • OptionalaOutputPointSFCT: Point

      the output point; if not specified a new point will be created

    Returns Point

    a point containing the transformed coordinate. If aOutputPointSFCT was present in the parameters, aOutputPointSFCT will be returned

    OutOfBoundsError if the input point is not defined in the output reference

  • Transforms a bounding box from the input reference to the output reference.

    When transforming bounds between different projections, the resulting bounds are aligned with the axes of the output reference system. This can lead to changes in shape and size, as the transformed bounds may cover a larger area than the original. Users should be aware of potential distortions and verify the transformed bounds for their specific application needs.

    Parameters

    • inputBounds: Bounds

      the bounding box to transform, specified in the input reference.

    • OptionaloutputBoundsSFCT: Bounds

      the output bounds. If not specified, a new bounds will be created.

    Returns Bounds

    the transformed Bounds. If outputBoundsSFCT was provided, it will be transformed and returned.

    OutOfBoundsError if the input bounds is not defined in the output reference.