worldToIntrinsic

Transform planar world to intrinsic coordinates

Description

[xIntrinsic,yIntrinsic] = worldToIntrinsic(R,xWorld,yWorld) returns the intrinsic coordinates corresponding to planar world coordinates (xWorld, yWorld) in map raster R. If a point is outside the bounds of R, then worldToIntrinsic extrapolates the xIntrinsic and yIntrinsic coordinates.

Input Arguments

collapse all

Map raster, specified as a MapCellsReference or MapPostingsReference object.

x-coordinates in the world coordinate system, specified as a numeric array. xWorld coordinates can be outside the bounds of the raster R.

Data Types: single | double

y-coordinates in the world coordinate system, specified as a numeric array. yWorld is the same size as xWorld. yWorld coordinates can be outside the bounds of the raster R.

Data Types: single | double

Output Arguments

collapse all

x-coordinates in the intrinsic coordinate system, returned as a numeric array. xIntrinsic is the same size as xWorld.

When xWorld(k) is outside the bounds of raster R, xIntrinsic(k) is extrapolated in the intrinsic coordinate system.

Data Types: double

y-coordinates in the intrinsic coordinate system, returned as a numeric array. yIntrinsic is the same size as xWorld.

When yWorld(k) outside the bounds of raster R, yIntrinsic(k) is extrapolated in the intrinsic coordinate system.

Data Types: double

Introduced in R2013b