flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman 24 Dec 2023, 20:36
I found this, but not sure is this right variant ?
Code: point scaling(point p,float sx,float sy) { point s; int c[1][3]; int a[1][3]={p.x,p.y,1}; int b[3][3]={sx,0,0,0,sy,0,0,0,1}; multmat(a,b,c);//result in с s.x=c[0][0]; s.y=c[0][1]; return s; } |
|||
![]() |
|
comrade 27 Dec 2023, 04:25
Второй вариант использует матрицы. Что именно не понятно? Scaling значит что-то либо увеличить либо уменьшить.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.