Skip to content

chore: standardize physical constants across the library#17

Merged
LimaniBhavik merged 1 commit into
mainfrom
standardize-physical-constants-6081694239351818513
Mar 1, 2026
Merged

chore: standardize physical constants across the library#17
LimaniBhavik merged 1 commit into
mainfrom
standardize-physical-constants-6081694239351818513

Conversation

@LimaniBhavik

Copy link
Copy Markdown
Owner

Centralized shared physical constants (G, EARTH_MASS, EARTH_RADIUS, GRAVITY) into src/physics/constants.rs and updated all modules to use them. This improves maintainability and ensures consistency across different calculation domains.

  • Created src/physics/constants.rs
  • Re-exported constants in src/physics/mod.rs
  • Updated src/space/*, src/geo/*, src/water/*, and src/physics/*
  • Updated test assertions to match increased precision of standard gravity.

Centralized shared physical constants (G, EARTH_MASS, EARTH_RADIUS, GRAVITY)
into `src/physics/constants.rs` and updated all modules to use them.
This improves maintainability and ensures consistency across different
calculation domains.

- Created `src/physics/constants.rs`
- Re-exported constants in `src/physics/mod.rs`
- Updated `src/space/*`, `src/geo/*`, `src/water/*`, and `src/physics/*`
- Updated test assertions to match increased precision of standard gravity.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@LimaniBhavik LimaniBhavik merged commit 19dbd66 into main Mar 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant