Browse Source

Update comment

michalzr 4 năm trước cách đây
mục cha
commit
d9b721455b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/Maths/math.vector.ts

+ 2 - 2
src/Maths/math.vector.ts

@@ -3453,10 +3453,10 @@ export class Quaternion {
     }
     }
 
 
     /**
     /**
-     * Creates a rotation quaternion that rotates vector vecFrom to vector vecTo
+     * Updates a quaternion so that it rotates vector vecFrom to vector vecTo
      * @param vecFrom defines the direction vector from which to rotate
      * @param vecFrom defines the direction vector from which to rotate
      * @param vecTo defines the direction vector to which to rotate
      * @param vecTo defines the direction vector to which to rotate
-     * @returns the new quaternion
+     * @returns the updated quaternion
      */
      */
     public static FromUnitVectorsToRef(vecFrom: DeepImmutable<Vector3>, vecTo: DeepImmutable<Vector3>, result: Quaternion): Quaternion {
     public static FromUnitVectorsToRef(vecFrom: DeepImmutable<Vector3>, vecTo: DeepImmutable<Vector3>, result: Quaternion): Quaternion {
         const r = Vector3.Dot(vecFrom, vecTo) + 1;
         const r = Vector3.Dot(vecFrom, vecTo) + 1;