Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

Commit e9bf2f4

Browse files
committed
Rename Vec transfer to copyFrom
1 parent df00ee7 commit e9bf2f4

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/main/java/clientapi/util/math/Vec2.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,13 @@ public final Vec2 copy() {
177177
}
178178

179179
/**
180-
* Transfers the X/Y from another Vec2 and sets this
181-
* Vec2's X/Y to it
180+
* Copies the X/Y values of the specified Vec2 to this Vec2
182181
*
183182
* @param vec Another Vec2
184183
*
185184
* @return This Vec2
186185
*/
187-
public final Vec2 transfer(Vec2 vec) {
186+
public final Vec2 copyFrom(Vec2 vec) {
188187
this.x = vec.x;
189188
this.y = vec.y;
190189
return this;

src/main/java/clientapi/util/math/Vec3.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,13 @@ public final Vec3 copy() {
164164
}
165165

166166
/**
167-
* Transfers the X/Y/Z from another Vec3 and sets this
168-
* Vec3's X/Y/Z to it
167+
* Copies the X/Y/Z values of the specified Vec3 to this Vec3
169168
*
170169
* @param vec Another Vec3
171170
*
172171
* @return This Vec3
173172
*/
174-
public final Vec3 transfer(Vec3 vec) {
173+
public final Vec3 copyFrom(Vec3 vec) {
175174
this.x = vec.x;
176175
this.y = vec.y;
177176
this.z = vec.z;

0 commit comments

Comments
 (0)