Skip to main content

Small reference-frame transformations for relative geometric measurements.

Project description

sheafrelgeom

sheafrelgeom provides a tiny typed core for measurements expressed relative to named reference frames. It deliberately handles translation only, keeping the semantics explicit while leaving rotations, projections, and units to specialized packages.

from sheafrelgeom import Frame, Point, reframe

world = Frame("world")
camera = Frame("camera", parent=world, origin=(2.0, 1.0))
pixel_origin = Point("camera", (0.0, 0.0))

assert reframe(pixel_origin, camera, world) == Point("world", (2.0, 1.0))

Frames form an acyclic parent chain. reframe resolves a point through that chain and returns it in any related target frame. The package has no runtime dependencies and supports coordinates of any matching dimension.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sheafrelgeom-0.1.0a1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sheafrelgeom-0.1.0a1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file sheafrelgeom-0.1.0a1.tar.gz.

File metadata

  • Download URL: sheafrelgeom-0.1.0a1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sheafrelgeom-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 05e68ed131b1433d27b1640111c7db353ba4c0f5bb4fb71bc500d0852a4aec53
MD5 dafd4654d363e18300a5a676fe5c6d57
BLAKE2b-256 7bd14c35a99e405583ef314a424b7219102ec9e9ea6a4cbedae6c5b7df796bb7

See more details on using hashes here.

File details

Details for the file sheafrelgeom-0.1.0a1-py3-none-any.whl.

File metadata

  • Download URL: sheafrelgeom-0.1.0a1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sheafrelgeom-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdb4aff9ba91db928a025570f53fe34a73435b7059ba737d41bd33f61cdacb7e
MD5 30f1e5a04892e152c17cdc5952290c74
BLAKE2b-256 c978283cffe65f6c86f7bb20c145b8fbd49bc58989fe547ca7e10b7dad825825

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page