point should be doubles
This commit is contained in:
parent
c1cf3e4ce7
commit
d574b72ec7
@ -22,7 +22,7 @@
|
||||
# include "libft.h"
|
||||
# include "MLX42.h"
|
||||
|
||||
#define WRONG_LINE_LENGTH "Error: wrong line length. Expected %d, got %d\n"
|
||||
#define WRONG_LINE_LENGTH "Error: wrong line length. Expected %d, got %d in line nr %d\n"
|
||||
#define MALLOC_ERROR "Error: malloc failed\n"
|
||||
#define FILE_ERROR "Error: could not open file %s\n"
|
||||
#define USAGE_ERROR "Usage: %s <filename>\n"
|
||||
@ -32,9 +32,9 @@
|
||||
|
||||
typedef struct s_point
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
double x;
|
||||
double y;
|
||||
double z;
|
||||
} t_point;
|
||||
|
||||
typedef struct s_map
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
void rotate_x(t_point **points, double angle, int size)
|
||||
{
|
||||
int i;
|
||||
int previous_y;
|
||||
double previous_y;
|
||||
|
||||
i = 0;
|
||||
while (i < size)
|
||||
@ -17,7 +17,7 @@ void rotate_x(t_point **points, double angle, int size)
|
||||
void rotate_y(t_point **points, double angle, int size)
|
||||
{
|
||||
int i;
|
||||
int previous_x;
|
||||
double previous_x;
|
||||
|
||||
i = 0;
|
||||
while (i < size)
|
||||
@ -31,8 +31,8 @@ void rotate_y(t_point **points, double angle, int size)
|
||||
void rotate_z(t_point **points, double angle, int size)
|
||||
{
|
||||
int i;
|
||||
int previous_x;
|
||||
int previous_y;
|
||||
double previous_x;
|
||||
double previous_y;
|
||||
|
||||
i = 0;
|
||||
while (i < size)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user