File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Sources/Rendering/Core/Camera Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -301,10 +301,17 @@ export interface vtkCamera extends vtkObject {
301
301
getViewAngle ( ) : number ;
302
302
303
303
/**
304
- *
304
+ * Get the view transform
305
305
*/
306
306
getViewMatrix ( ) : mat4 ;
307
307
308
+ /**
309
+ * Get the model transform matrix for the camera.
310
+ * This matrix could be used for model related transformations such as scale, shear, rotations and translations.
311
+ * @returns {mat4 } mat The value of the model transform matrix.
312
+ */
313
+ getModelTransformMatrix ( ) : mat4 ;
314
+
308
315
/**
309
316
* Get the ViewPlaneNormal.
310
317
* This vector will point opposite to the direction of projection,
@@ -674,7 +681,14 @@ export interface vtkCamera extends vtkObject {
674
681
* Set the view matrix for the camera.
675
682
* @param {mat4 } mat The value of the view matrix.
676
683
*/
677
- setViewMatrix ( mat : mat4 ) : boolean ;
684
+ setViewMatrix ( mat : mat4 ) : void ;
685
+
686
+ /**
687
+ * Set the model transform matrix for the camera.
688
+ * This matrix could be used for model related transformations such as scale, shear, rotations and translations.
689
+ * @param {mat4 } mat The value of the model transform matrix.
690
+ */
691
+ setModelTransformMatrixMatrix ( mat : mat4 ) : void ;
678
692
679
693
/**
680
694
* Set the view up direction for the camera.
You can’t perform that action at this time.
0 commit comments