@galacean/engine-math 2.0.0-alpha.39 → 2.0.0-alpha.41
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 +17 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +17 -0
- package/dist/module.js.map +1 -1
- package/package.json +1 -2
- package/types/Ray.d.ts +14 -1
package/dist/module.js
CHANGED
|
@@ -3657,6 +3657,23 @@ Matrix._tempMat30 = new Matrix3x3();
|
|
|
3657
3657
|
Vector3.scale(this.direction, distance, out);
|
|
3658
3658
|
return out.add(this.origin);
|
|
3659
3659
|
};
|
|
3660
|
+
/**
|
|
3661
|
+
* Creates a clone of this ray.
|
|
3662
|
+
* @returns A clone of this ray
|
|
3663
|
+
*/ _proto.clone = function clone() {
|
|
3664
|
+
var out = new Ray();
|
|
3665
|
+
out.copyFrom(this);
|
|
3666
|
+
return out;
|
|
3667
|
+
};
|
|
3668
|
+
/**
|
|
3669
|
+
* Copy this ray from the specified ray.
|
|
3670
|
+
* @param source - The specified ray
|
|
3671
|
+
* @returns This ray
|
|
3672
|
+
*/ _proto.copyFrom = function copyFrom(source) {
|
|
3673
|
+
this.origin.copyFrom(source.origin);
|
|
3674
|
+
this.direction.copyFrom(source.direction);
|
|
3675
|
+
return this;
|
|
3676
|
+
};
|
|
3660
3677
|
return Ray;
|
|
3661
3678
|
}();
|
|
3662
3679
|
|