Skip to content

PVectors return themselves when modified - #3015

Closed
TheMaxJ wants to merge 1 commit into
processing:masterfrom
TheMaxJ:master
Closed

TheMaxJ wants to merge 1 commit into
processing:masterfrom
TheMaxJ:master

Conversation

@TheMaxJ

@TheMaxJ TheMaxJ commented Dec 23, 2014

Copy link
Copy Markdown

Most other APIs that have vectors use methods similar to those used with Java Strings in which methods that modify the object return that object. The branches are auto-merge-able.

For example:
http://jd.bukkit.org/rb/doxygen/d0/d19/classorg_1_1bukkit_1_1util_1_1Vector.html

In effect, all of the modified methods now "return this".

PVector’s modification void methods now return the instance of the
PVector after Modification.
@benfry

benfry commented Dec 24, 2014

Copy link
Copy Markdown
Contributor

#257

@benfry benfry closed this Dec 24, 2014
@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants