@kayahr/etchmap
    Preparing search index...

    Class LinearProjection

    Linear projection between arbitrary source coordinates and the normalized tile world.

    Implements

    Index
    • Creates a linear projection.

      Parameters

      • edges: LinearProjectionEdges = ...

        Optional source-coordinate values at the map edges. Defaults to the unit square with left and top at zero and right and bottom at one. Reversing top and bottom supports coordinate systems whose Y axis points upward.

      Returns LinearProjection

      RangeError When an edge coordinate is not finite or an axis has zero size.

    • Converts source coordinates into normalized tile-world coordinates.

      Parameters

      • point: Point

        Point in source coordinates.

      Returns Point

      Point in normalized tile-world coordinates.

    • Converts normalized tile-world coordinates into source coordinates.

      Parameters

      • point: Point

        Point in normalized tile-world coordinates.

      Returns Point

      Point in source coordinates.