fixed: renamed wrongly named clone() to set()

This commit is contained in:
Cerrato Renaud
2016-09-12 12:54:25 -04:00
parent ea66951871
commit 858a1313a3

View File

@@ -269,11 +269,8 @@ public class Vector3f {
*
* @param source The vector you want to clone.
*/
public void clone(Vector3f source) {
// this.points[0] = source.points[0];
// this.points[1] = source.points[1];
// this.points[2] = source.points[2];
System.arraycopy(source.points, 0, points, 0, 3);
public void set(Vector3f source) {
set(source.points);
}
/**
@@ -281,10 +278,7 @@ public class Vector3f {
*
* @param source The vector you want to clone.
*/
public void clone(float[] source) {
// this.points[0] = source[0];
// this.points[1] = source[1];
// this.points[2] = source[2];
public void set(float[] source) {
System.arraycopy(source, 0, points, 0, 3);
}
}