@dcl/sdk 7.0.0-3388940429.commit-45b2012 → 7.0.0-3445274368.commit-063bc43
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/ecs7/index.d.ts
CHANGED
@@ -3243,7 +3243,7 @@ export declare namespace Quaternion {
|
|
3243
3243
|
* @param y - the rotation on the y axis in euler degrees
|
3244
3244
|
* @param z - the rotation on the z axis in euler degrees
|
3245
3245
|
*/
|
3246
|
-
export function
|
3246
|
+
export function fromEulerDegrees(x: number, y: number, z: number): MutableQuaternion;
|
3247
3247
|
/**
|
3248
3248
|
* Gets length of current quaternion
|
3249
3249
|
* @returns the quaternion length (float)
|
@@ -3265,7 +3265,7 @@ export declare namespace Quaternion {
|
|
3265
3265
|
* Returns the angle in degrees between two rotations a and b.
|
3266
3266
|
* @param quat1 - defines the first quaternion
|
3267
3267
|
* @param quat2 - defines the second quaternion
|
3268
|
-
* @returns the
|
3268
|
+
* @returns the degrees angle
|
3269
3269
|
*/
|
3270
3270
|
export function angle(quat1: ReadonlyQuaternion, quat2: ReadonlyQuaternion): number;
|
3271
3271
|
/**
|
@@ -3301,7 +3301,7 @@ export declare namespace Quaternion {
|
|
3301
3301
|
* Gets or sets the euler angle representation of the rotation.
|
3302
3302
|
* Implemented unity-based calculations from: https://stackoverflow.com/a/56055813
|
3303
3303
|
* @public
|
3304
|
-
* @returns a new Vector3 with euler angles
|
3304
|
+
* @returns a new Vector3 with euler angles degrees
|
3305
3305
|
*/
|
3306
3306
|
export function toEulerAngles(q: MutableQuaternion): Vector3.Mutable;
|
3307
3307
|
/**
|
@@ -3351,11 +3351,11 @@ export declare namespace Quaternion {
|
|
3351
3351
|
export function multiplyToRef(self: ReadonlyQuaternion, q1: ReadonlyQuaternion, result: MutableQuaternion): void;
|
3352
3352
|
/**
|
3353
3353
|
*
|
3354
|
-
* @param
|
3354
|
+
* @param degrees - the angle degrees
|
3355
3355
|
* @param axis - vector3
|
3356
3356
|
* @returns a new Quaternion
|
3357
3357
|
*/
|
3358
|
-
export function fromAngleAxis(
|
3358
|
+
export function fromAngleAxis(degrees: number, axis: Vector3.ReadonlyVector3): MutableQuaternion;
|
3359
3359
|
/**
|
3360
3360
|
* Creates a new quaternion containing the rotation value to reach the target (axis1, axis2, axis3) orientation as a rotated XYZ system (axis1, axis2 and axis3 are normalized during this operation)
|
3361
3361
|
* @param axis1 - defines the first axis
|