Skip to content

Straight shot example - Divide by sqrt(2) instead of multiply#259

Open
a-sklyarov wants to merge 1 commit intoekiefl:mainfrom
a-sklyarov:fix-straight-shot-example
Open

Straight shot example - Divide by sqrt(2) instead of multiply#259
a-sklyarov wants to merge 1 commit intoekiefl:mainfrom
a-sklyarov:fix-straight-shot-example

Conversation

@a-sklyarov
Copy link

To move a distance D along the diagonal, we should divide by sqrt(2) instead of multiply to get the x and y. I adjusted the values for d and D to double what they were to keep the rest of the examples the same.

@a-sklyarov a-sklyarov requested a review from ekiefl as a code owner February 5, 2026 00:08
@coderabbitai
Copy link

coderabbitai bot commented Feb 5, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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