提交 3b334a3f 编写于 作者: M Mr.doob

VectorX.set()

上级 47ba3079
......@@ -7,6 +7,12 @@ THREE.Vector2 = function (x, y) {
this.x = x || 0;
this.y = y || 0;
this.set = function (x, y) {
this.x = x;
this.y = y;
}
this.copy = function (v) {
this.x = v.x;
......
......@@ -9,6 +9,13 @@ THREE.Vector3 = function (x, y, z) {
this.y = y || 0;
this.z = z || 0;
this.set = function (x, y, z) {
this.x = x;
this.y = y;
this.z = z;
}
this.copy = function (v) {
this.x = v.x;
......
......@@ -9,6 +9,14 @@ THREE.Vector4 = function (x, y, z, w) {
this.z = z || 0;
this.w = w || 1;
this.set = function (x, y, z, w) {
this.x = x;
this.y = y;
this.z = z;
this.w = w;
}
this.copy = function (v) {
this.x = v.x;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册