mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-24 09:10:16 +00:00
upgrade
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void center(int xlt, int ylt, int xrb, int yrb, int *pxc, int *pyc)
|
||||
{
|
||||
*pxc = (xlt + xrb) / 2;
|
||||
*pyc = (ylt + yrb) / 2;
|
||||
}
|
||||
|
||||
void rotateC(int *x1, int *y1, int *x2, int *y2)
|
||||
{
|
||||
int t1 = *x1, t2 = *x2;
|
||||
|
||||
*x1 = *y2;
|
||||
*x2 = *y1;
|
||||
*y1 = t2;
|
||||
*y2 = t1;
|
||||
}
|
||||
Reference in New Issue
Block a user