-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Update core documentation to match recent C# changes #40501
Conversation
1f6c0a6
to
86bce1d
Compare
Needs a rebase on current |
a1d5759
to
63c126a
Compare
Sorry, needs another rebase to fix CI, emscripten this time :) |
@@ -303,7 +305,7 @@ | |||
<argument index="0" name="n" type="Vector2"> | |||
</argument> | |||
<description> | |||
Returns the component of the vector along a plane defined by the given normal. | |||
Returns this vector slid along a plane defined by the given normal. |
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'm not sure this is clear enough as is (wasn't clear enough before either), especially to non-native speakers who may not be familiar with the past-participle of "slide" (or for anyone, the meaning of "sliding a vector along a plane").
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'm not really familiar with this function; I don't know what it's used for. This is the best documentation I can write for it, perhaps someone else can improve it further.
@@ -304,7 +306,7 @@ | |||
<argument index="0" name="n" type="Vector3"> | |||
</argument> | |||
<description> | |||
Returns the component of the vector along a plane defined by the given normal. | |||
Returns this vector slid along a plane defined by the given normal. |
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.
Same comment as for Vector2.
# a is 0.5 | ||
a = wrapf(10.5, 0.0, 10.0) | ||
[/codeblock] | ||
[codeblock] | ||
# a is 9.5 | ||
a = wrapf(-0.5, 0.0, 10.0) | ||
[/codeblock] |
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.
Why remove those examples? Users are always asking for more examples.
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.
These examples aren't relevant for wrapf
, because these are cases where it's better to use fposmod
.
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.
All reviewed.
Once merged, a non-compat-breaking version of the documentation improvements would be welcome for the |
Also a few minor API changes like adding AABB.abs() Co-authored-by: Rémi Verschelde <[email protected]>
9198f9e
to
83e324d
Compare
In addition to the above suggestions, I also added the Plane equation suggestions in the C# documentation. |
Thanks! |
Also a few minor API changes like adding AABB.abs() to match Rect2. The "recent C# changes" mentioned is #40218.