@galacean/engine-xr-webxr 1.3.19 → 1.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -427,6 +427,16 @@ function _create_class(Constructor, protoProps, staticProps) {
427
427
  return this;
428
428
  };
429
429
  /**
430
+ * Copy to vector3 like object.
431
+ * @param target - Vector3 like object
432
+ * @returns This Vector3 like object
433
+ */ _proto.copyTo = function copyTo(target) {
434
+ target.x = this._x;
435
+ target.y = this._y;
436
+ target.z = this._z;
437
+ return target;
438
+ };
439
+ /**
430
440
  * Copy the value of this vector from an array.
431
441
  * @param array - The array
432
442
  * @param offset - The start offset of the array
@@ -2143,6 +2153,17 @@ function _create_class(Constructor, protoProps, staticProps) {
2143
2153
  return this;
2144
2154
  };
2145
2155
  /**
2156
+ * Copy this quaternion to the specified quaternion.
2157
+ * @param target - The specified quaternion
2158
+ * @returns This specified quaternion
2159
+ */ _proto.copyTo = function copyTo(target) {
2160
+ target.x = this._x;
2161
+ target.y = this._y;
2162
+ target.z = this._z;
2163
+ target.w = this._w;
2164
+ return target;
2165
+ };
2166
+ /**
2146
2167
  * Copy the value of this quaternion from an array.
2147
2168
  * @param array - The array
2148
2169
  * @param offset - The start offset of the array
@@ -3664,6 +3685,15 @@ function _create_class(Constructor, protoProps, staticProps) {
3664
3685
  return this;
3665
3686
  };
3666
3687
  /**
3688
+ * Copy to vector2 like object.
3689
+ * @param target - Vector2 like object
3690
+ * @returns This Vector2 like object
3691
+ */ _proto.copyTo = function copyTo(target) {
3692
+ target.x = this._x;
3693
+ target.y = this._y;
3694
+ return target;
3695
+ };
3696
+ /**
3667
3697
  * Copy the value of this vector from an array.
3668
3698
  * @param array - The array
3669
3699
  * @param offset - The start offset of the array
@@ -4010,6 +4040,17 @@ function _create_class(Constructor, protoProps, staticProps) {
4010
4040
  return this;
4011
4041
  };
4012
4042
  /**
4043
+ * Copy to vector4 like object.
4044
+ * @param target - Vector4 like object
4045
+ * @returns This Vector4 like object
4046
+ */ _proto.copyTo = function copyTo(target) {
4047
+ target.x = this._x;
4048
+ target.y = this._y;
4049
+ target.z = this._z;
4050
+ target.w = this._w;
4051
+ return target;
4052
+ };
4053
+ /**
4013
4054
  * Copy the value of this vector by an array.
4014
4055
  * @param array - The array
4015
4056
  * @param offset - The start offset of the array