瀏覽代碼

Add CameraModel.intrinsicsMatrix()

customisations
alemart 7 月之前
父節點
當前提交
b94fd83d86
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      src/geometry/camera-model.ts

+ 9
- 0
src/geometry/camera-model.ts 查看文件

@@ -260,6 +260,15 @@ export class CameraModel
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 272
      * Compute the view matrix. This 4x4 matrix moves 3D points from
264 273
      * world space to view space. We want the camera looking in the
265 274
      * direction of the negative z-axis (WebGL-friendly)

Loading…
取消
儲存