Skip to content

Commit 0faf3fb

Browse files
sankheshfloryst
authored andcommitted
docs(camera): added ts definition for [set/get]ModelTransformMatrix
Also fixed the definition for setViewMatrix.
1 parent 25d2945 commit 0faf3fb

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Sources/Rendering/Core/Camera/index.d.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,17 @@ export interface vtkCamera extends vtkObject {
301301
getViewAngle(): number;
302302

303303
/**
304-
*
304+
* Get the view transform
305305
*/
306306
getViewMatrix(): mat4;
307307

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+
308315
/**
309316
* Get the ViewPlaneNormal.
310317
* This vector will point opposite to the direction of projection,
@@ -674,7 +681,14 @@ export interface vtkCamera extends vtkObject {
674681
* Set the view matrix for the camera.
675682
* @param {mat4} mat The value of the view matrix.
676683
*/
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;
678692

679693
/**
680694
* Set the view up direction for the camera.

0 commit comments

Comments
 (0)