Add distant_point_on_circle usage example#701
Add distant_point_on_circle usage example#701ekam313 wants to merge 2 commits intothoth-tech:mainfrom
Conversation
❌ Deploy Preview for splashkit failed.
|
Osaid2993
left a comment
There was a problem hiding this comment.
Approved. This is a clear and beginner-friendly usage example, and the visual output makes the function easy to understand.
I only had two small suggestions. The window variables in the C# and C++ versions seem unused, so removing them could keep the code cleaner. I also noticed the instruction text is slightly different across languages, so making it consistent may help beginners compare the example more easily.
keep up the good work!
…e instruction text
|
Thanks for the feedback! I’ve removed the unused window variables to improve code clarity and made the instruction text consistent across all language versions for better readability. |
Peer ReviewThanks for the contribution this is a clear and well-structured usage example for I pulled the PR locally and reviewed it against the usage example guidelines. Checks
Code Tests done
Website Tests done
SummaryThe example is simple, clear, and effectively demonstrates how No issues found during review. ApprovalApproved , ready to merge. |
Description
Added a new usage example for the distant_point_on_circle function in the Geometry category.
This example demonstrates how to calculate and visually display the point on a circle that is furthest from a given reference point. The mouse position is used as the reference point, and the distant point updates dynamically in real time.
The example is designed to be beginner-friendly and clearly illustrates the geometric relationship between the circle center, reference point, and distant point using visual elements.
No additional dependencies were required.
Type of change
How Has This Been Tested?
The implementation was tested across multiple language versions to ensure correctness, consistency, and adherence to SplashKit usage example guidelines.
Python version was executed using:
skm python3 program.pyVerified that:
C# versions (top-level and OOP) were tested using:
dotnet runVerified that the application runs correctly and produces consistent behaviour with the Python version.
C++ version was compiled and executed using:
Verified that the program compiles successfully and renders the expected graphical output.
The example was also validated within the local website environment using:
npm run devConfirmed that:
Testing Checklist
Checklist
If involving code
Folders and Files Added/Modified
Please list the folders and files added/modified with this pull request and delete options that are not relevant.
Additional Notes
This example follows the usage example guidelines:
minimal and focused implementation
clear visual demonstration
consistent comments across languages
beginner-friendly structure
This is an initial usage example for the function and can be extended in future with additional variations if needed.