@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/main.js
CHANGED
|
@@ -3661,6 +3661,23 @@ Matrix._tempMat30 = new Matrix3x3();
|
|
|
3661
3661
|
Vector3.scale(this.direction, distance, out);
|
|
3662
3662
|
return out.add(this.origin);
|
|
3663
3663
|
};
|
|
3664
|
+
/**
|
|
3665
|
+
* Creates a clone of this ray.
|
|
3666
|
+
* @returns A clone of this ray
|
|
3667
|
+
*/ _proto.clone = function clone() {
|
|
3668
|
+
var out = new Ray();
|
|
3669
|
+
out.copyFrom(this);
|
|
3670
|
+
return out;
|
|
3671
|
+
};
|
|
3672
|
+
/**
|
|
3673
|
+
* Copy this ray from the specified ray.
|
|
3674
|
+
* @param source - The specified ray
|
|
3675
|
+
* @returns This ray
|
|
3676
|
+
*/ _proto.copyFrom = function copyFrom(source) {
|
|
3677
|
+
this.origin.copyFrom(source.origin);
|
|
3678
|
+
this.direction.copyFrom(source.direction);
|
|
3679
|
+
return this;
|
|
3680
|
+
};
|
|
3664
3681
|
return Ray;
|
|
3665
3682
|
}();
|
|
3666
3683
|
|