File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ export const processTransform3d = (transforms: Transforms3d) => {
346
346
/**
347
347
* @worklet
348
348
*/
349
- export const convertToColumnMajor = ( rowMajorMatrix : number [ ] ) => {
349
+ export const convertToColumnMajor = ( rowMajorMatrix : Matrix4 ) => {
350
350
"worklet" ;
351
351
352
352
const colMajorMatrix = new Array < number > ( 16 ) ;
@@ -356,13 +356,13 @@ export const convertToColumnMajor = (rowMajorMatrix: number[]) => {
356
356
colMajorMatrix [ col * size + row ] = rowMajorMatrix [ row * size + col ] ;
357
357
}
358
358
}
359
- return colMajorMatrix as unknown as Matrix4 ;
359
+ return colMajorMatrix ;
360
360
} ;
361
361
362
362
/**
363
363
* @worklet
364
364
*/
365
- export const convertToAffineMatrix = ( m4 : Matrix4 ) => {
365
+ export const convertToAffineMatrix = ( m4 : number [ ] ) => {
366
366
"worklet" ;
367
367
// Extracting the relevant components from the 4x4 matrix
368
368
const a = m4 [ 0 ] ; // Scale X
You can’t perform that action at this time.
0 commit comments