@galacean/engine-math 2.0.0-alpha.46 → 2.0.0-alpha.48
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 +6 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -3
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/Vector3.d.ts +2 -1
package/package.json
CHANGED
package/types/Vector3.d.ts
CHANGED
|
@@ -106,8 +106,9 @@ export declare class Vector3 implements IClone<Vector3>, ICopy<Vector3Like, Vect
|
|
|
106
106
|
* Converts the vector into a unit vector.
|
|
107
107
|
* @param a - The vector to normalize
|
|
108
108
|
* @param out - The normalized vector
|
|
109
|
+
* @returns True if the vector has a unit form, otherwise false and `out` is left untouched
|
|
109
110
|
*/
|
|
110
|
-
static normalize(a: Vector3, out: Vector3):
|
|
111
|
+
static normalize(a: Vector3, out: Vector3): boolean;
|
|
111
112
|
/**
|
|
112
113
|
* Scale a vector by the given value.
|
|
113
114
|
* @param a - The vector to scale
|