Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update points translation and centering #12

Merged
merged 5 commits into from
Jan 4, 2025
Merged

Update points translation and centering #12

merged 5 commits into from
Jan 4, 2025

Conversation

salam99823
Copy link
Collaborator

@salam99823 salam99823 commented Jan 4, 2025

Changes

Added

  • public anchor module (f2c4560).
    • Enumeration Anchor:
      • Center for translate points by center of rect.
      • Vertical | Horizontal center to translate points by center of line.
      • Absolute center for translate points by center of her bounding box.
  • utils module marked public (f2c4560).
  • utils::center_of function for get center of polygon (03165ca).
  • utils::bounding_box function for get bounding box of polygon (f2c4560).

Changed

  • Upgrade dependencies: binary_image 0.6 (159761a).
  • utils::translate function moved to anchor::Anchor implementation (f2c4560).
  • utils::translate_objects function renamed to translate_polygons and moved to anchor::Anchor (f2c4560).

@salam99823 salam99823 requested a review from shnewto January 4, 2025 12:24
@salam99823 salam99823 added the enhancement New feature or request label Jan 4, 2025
Copy link
Owner

@shnewto shnewto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another really useful contribution @salam99823, thank you for the time you're investing in this crate

@shnewto shnewto merged commit f1a17a6 into main Jan 4, 2025
8 checks passed
@shnewto shnewto deleted the dev branch January 4, 2025 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants