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

Added distance #67

Merged
merged 2 commits into from
Nov 24, 2023
Merged

Added distance #67

merged 2 commits into from
Nov 24, 2023

Conversation

KyLeggiero
Copy link
Contributor

  • Also added CIVector default conformance to DualTwoDimensional
  • Also added magnitude to DualTwoDimensionals where the Lengths match and the distance can be determined. This was done for CIVector as sugar for its .distance between its two points
  • Improved description of how Rectangle's DualTwoDimensional conformance needs both Lengths to be the same. Thankfully didn't need to remove the associatedtype Length
  • Added an "Easy To Adopt" section to the README, inspired by this new .distance API

- Also added `CIVector` default conformance to `DualTwoDimensional`
- Also added `magnitude` to `DualTwoDimensional`s where the `Length`s match and the distance can be determined. This was done for `CIVector` as sugar for its `.distance` between its two points
- Improved description of how `Rectangle`'s `DualTwoDimensional` conformance needs both `Length`s to be the same. Thankfully didn't need to remove the `associatedtype Length`
- Added an "Easy To Adopt" section to the README, inspired by this new `.distance` API
@KyLeggiero KyLeggiero added the enhancement New feature or request label Nov 17, 2023
@KyLeggiero KyLeggiero self-assigned this Nov 17, 2023
Copy link
Contributor Author

@KyLeggiero KyLeggiero left a comment

Choose a reason for hiding this comment

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

Just a couple notes

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor Author

@KyLeggiero KyLeggiero left a comment

Choose a reason for hiding this comment

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

LGTM!

@KyLeggiero KyLeggiero merged commit 79c4161 into production Nov 24, 2023
2 checks passed
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.

1 participant