upxo.geoEntities.geoOps2D module

Generic 2D geometry helpers.

upxo.geoEntities.geoOps2D.offset_local_to_global(local_coord, offset)[source]

Apply a local-to-global coordinate offset.

Parameters:
  • local_coord (array-like, shape (..., 2)) – Local 2D coordinate or coordinate array.

  • offset (array-like, shape (2,)) – 2D offset to add to local_coord.

Returns:

Global coordinate array produced by adding offset.

Return type:

numpy.ndarray