-
Notifications
You must be signed in to change notification settings - Fork 33
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
Created simple usage examples for 5 Geometry functions #329
base: usage-examples
Are you sure you want to change the base?
Created simple usage examples for 5 Geometry functions #329
Conversation
✅ Deploy Preview for splashkit-usage-examples ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed this PR and the functions showcase in each usage example is great. Although there are some areas that can be improved on:
- The Color functions used in the C# OOP examples should use its OOP version. For example, the color red would be
Color.Red
rather thanSplashKit.ColorRed()
. - In the
lines_intersect
examples, the variable names could be improved on since each lines is represented by alphabets, the variables could also follow the same format. For instance, it would be startPointA rather than startPoint1 to provide clarity.
Hi @EthanRin, thanks for peer reviewing my PR. I've made the changes you've requested, kindly review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed the usage examples. Everything ran without issue.
Checks
- All required files are present.
- Title and explanation (.txt)
- C++ code
- C# code (top-level statements)
- C# code (Object-Oriented Programming)
- Python code
Tests done
- C++ code ran correctly.
- C# top level code ran correctly.
- C# OOP code ran correctly.
- Python code ran correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed this usage example and have tested each implementation of the program across different languages.
The code is well-structured and is consistent throughout each implementations. I approved of this PR.
Checklist
- Code uses SplashKit functions
- Code demonstrates uses of the functions
- Python code ran as expected.
- C# OOP code ran as expected.
- C# Top Level code ran as expected
- C++ Code ran as expected
Files required
- Python code
- C# OOP code
- C# Top Level code
- C++ Code
- Screenshot of the program running
- Title and description
Simple geometry usage examples for line related functions
Splashkit Functions:
line_length
line_length_squared
line_mid_point
line_to_string
lines_intersect