Kaynağa Gözat

Add CameraModel.intrinsicsMatrix()

customisations
alemart 7 ay önce
ebeveyn
işleme
b94fd83d86
1 değiştirilmiş dosya ile 9 ekleme ve 0 silme
  1. 9
    0
      src/geometry/camera-model.ts

+ 9
- 0
src/geometry/camera-model.ts Dosyayı Görüntüle

@@ -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…
İptal
Kaydet