Raanan Weber 5 năm trước cách đây
mục cha
commit
5798a88945
2 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 0 1
      src/Cameras/XR/webXRCamera.ts
  2. 6 0
      src/Maths/math.vector.ts

+ 0 - 1
src/Cameras/XR/webXRCamera.ts

@@ -78,7 +78,6 @@ export class WebXRCamera extends FreeCamera {
     /**
      * Updates the cameras position from the current pose information of the  XR session
      * @param xrSessionManager the session containing pose information
-     * @returns true if the camera has been updated, false if the session did not contain pose or frame data
      */
     public update() {
         if (!this._firstFrame) {

+ 6 - 0
src/Maths/math.vector.ts

@@ -2665,6 +2665,12 @@ export class Quaternion {
         return otherQuaternion && this.x === otherQuaternion.x && this.y === otherQuaternion.y && this.z === otherQuaternion.z && this.w === otherQuaternion.w;
     }
 
+    /**
+     * Gets a boolean if two quaternions are equals (using an epsilon value)
+     * @param otherQuaternion defines the other quaternion
+     * @param epsilon defines the minimal distance to consider equality
+     * @returns true if the given quaternion coordinates are close to the current ones by a distance of epsilon.
+     */
     public equalsWithEpsilon(otherQuaternion: DeepImmutable<Quaternion>, epsilon: number = Epsilon): boolean {
         return otherQuaternion
             && Scalar.WithinEpsilon(this.x, otherQuaternion.x, epsilon)