Browse Source

Add CameraModel.intrinsicsMatrix()

customisations
alemart 7 months ago
parent
commit
b94fd83d86
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      src/geometry/camera-model.ts

+ 9
- 0
src/geometry/camera-model.ts View File

260
     }
260
     }
261
 
261
 
262
     /**
262
     /**
263
+     * Camera intrinsics matrix
264
+     * @returns a 3x3 camera intrinsics matrix
265
+     */
266
+    intrinsicsMatrix(): SpeedyMatrix
267
+    {
268
+        return Speedy.Matrix(3, 3, this._intrinsics);
269
+    }
270
+
271
+    /**
263
      * Compute the view matrix. This 4x4 matrix moves 3D points from
272
      * Compute the view matrix. This 4x4 matrix moves 3D points from
264
      * world space to view space. We want the camera looking in the
273
      * world space to view space. We want the camera looking in the
265
      * direction of the negative z-axis (WebGL-friendly)
274
      * direction of the negative z-axis (WebGL-friendly)

Loading…
Cancel
Save