Skip to content

Create Round(), Rounded() functions for Vector2.hh#166

Merged
chapulina merged 1 commit intogazebosim:ign-math6from
akshatpandya:ign-math6
Oct 17, 2020
Merged

Create Round(), Rounded() functions for Vector2.hh#166
chapulina merged 1 commit intogazebosim:ign-math6from
akshatpandya:ign-math6

Conversation

@akshatpandya
Copy link
Copy Markdown
Contributor

  • Round(): Rounds to nearest whole number inplace
  • Rounded(): Returns a rounded version of the vector

Created unit tests for both functions.

colcon build --merge-install [PASSED]
colcon test --merge-install [PASSED]

Intend to solve issue ignitionrobotics#71

Signed-off by: Akshat Pandya akspandya.97@gmail.com

@github-actions github-actions bot added 🏢 edifice Ignition Edifice 🏰 citadel Ignition Citadel 📜 blueprint Ignition Blueprint 🔮 dome Ignition Dome labels Oct 17, 2020
- Round(): Rounds to nearest whole number inplace
- Rounded(): Returns a rounded version of the vector

Created unit tests for both functions.

colcon build --merge-install [PASSED]
colcon test --merge-install [PASSED]

Intend to solve issue ignitionrobotics#71

Signed-off-by: akshatpandya <akspandya.97@gmail.com>
Copy link
Copy Markdown
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution, @akshatpandya !

This looks good to me. I'll just wait for all tests to finish running before merging.

@chapulina chapulina merged commit 3597623 into gazebosim:ign-math6 Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📜 blueprint Ignition Blueprint 🏰 citadel Ignition Citadel 🔮 dome Ignition Dome 🏢 edifice Ignition Edifice

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants