mirror of
https://github.com/StepanovPlaton/C3DGraphicEngine.git
synced 2026-04-03 20:30:42 +04:00
19 lines
633 B
C
19 lines
633 B
C
#ifndef POINT_H
|
|
#define POINT_H
|
|
|
|
#include "../utils/screen.h"
|
|
|
|
typedef struct Point {
|
|
float coordinates[3];
|
|
} Point;
|
|
|
|
void point_add_point(Point *const point, const Point *const other_point);
|
|
void point_mult_number(Point *const point, const int k);
|
|
void point_transform(Point *const point, int size,
|
|
const float *translate_matrix);
|
|
void point_create_translate_matrix(const Point *const position,
|
|
float *translate_matrix, int k);
|
|
ScreenPoint point_to_screen_point(Point *point, const Screen *const screen,
|
|
const float *render_matrix);
|
|
|
|
#endif |