Skip to content
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

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

aaronfranke
Copy link
Member

Also a few minor API changes like adding AABB.abs() to match Rect2. The "recent C# changes" mentioned is #40218.

@akien-mga
Copy link
Member

Needs a rebase on current master to fix CI.

@aaronfranke aaronfranke force-pushed the core-docs-cs branch 2 times, most recently from a1d5759 to 63c126a Compare July 20, 2020 22:02
@akien-mga
Copy link
Member

Sorry, needs another rebase to fix CI, emscripten this time :)

doc/classes/AABB.xml Outdated Show resolved Hide resolved
doc/classes/AABB.xml Outdated Show resolved Hide resolved
doc/classes/Basis.xml Outdated Show resolved Hide resolved
doc/classes/Plane.xml Outdated Show resolved Hide resolved
doc/classes/Quat.xml Outdated Show resolved Hide resolved
doc/classes/Quat.xml Outdated Show resolved Hide resolved
doc/classes/Quat.xml Outdated Show resolved Hide resolved
doc/classes/Quat.xml Outdated Show resolved Hide resolved
doc/classes/Quat.xml Outdated Show resolved Hide resolved
doc/classes/Quat.xml Outdated Show resolved Hide resolved
doc/classes/Rect2.xml Outdated Show resolved Hide resolved
doc/classes/Rect2i.xml Outdated Show resolved Hide resolved
@@ -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.
Copy link
Member

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").

Copy link
Member Author

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.

doc/classes/Vector2.xml Outdated Show resolved Hide resolved
@@ -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.
Copy link
Member

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.

doc/classes/Vector3.xml Outdated Show resolved Hide resolved
doc/classes/Vector3.xml Outdated Show resolved Hide resolved
Comment on lines -1315 to -1321
# 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]
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

All reviewed.

@akien-mga
Copy link
Member

Once merged, a non-compat-breaking version of the documentation improvements would be welcome for the 3.2 branch :)

Also a few minor API changes like adding AABB.abs()

Co-authored-by: Rémi Verschelde <[email protected]>
@aaronfranke
Copy link
Member Author

In addition to the above suggestions, I also added the Plane equation suggestions in the C# documentation.

@akien-mga akien-mga merged commit bb2c0d3 into godotengine:master Jul 21, 2020
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants