-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: merge pull request #37 from ygor-sena/chore/norminette-fix
fix: address latest norminette v3.3.55 update incompatibility issue
- Loading branch information
Showing
4 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,13 @@ | |
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2023/05/10 12:11:15 by mdias-ma #+# #+# */ | ||
/* Updated: 2023/06/16 13:40:10 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/04 13:28:12 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
/// @file parser.h | ||
#ifndef PARSER_H | ||
# define PARSER_H | ||
|
||
# include <fcntl.h> | ||
# include <stdlib.h> | ||
|
@@ -54,6 +55,29 @@ typedef enum e_token | |
TOKEN_COUNT | ||
} t_token; | ||
|
||
/** | ||
* @brief Stores the parameters of the shapes cone and cylinder from | ||
* configuration file after they have been verified by the scanner. | ||
* | ||
* @param origin Stores the origin of the cone or cylinder. | ||
* @param direction Stores the direction of the cone or cylinder. | ||
* @param diameter Stores the diameter of the cone or cylinder. | ||
* @param height Stores the height of the cone or cylinder. | ||
* @param radius Stores the radius of the cone or cylinder. | ||
* @param minimum Stores the cone or cylinder minimum height/lowest height. | ||
* @param maximum Stores the cone or cylinder maxinum height/highest height. | ||
*/ | ||
typedef struct s_param | ||
{ | ||
t_point origin; | ||
t_vector direction; | ||
double diameter; | ||
double height; | ||
float radius; | ||
float minimum; | ||
float maximum; | ||
} t_param; | ||
|
||
/** | ||
* @brief Represents a scanner. | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
/* By: yde-goes <[email protected]> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2023/03/28 18:05:41 by mdias-ma #+# #+# */ | ||
/* Updated: 2023/06/16 13:40:21 by yde-goes ### ########.fr */ | ||
/* Updated: 2024/04/04 09:30:35 by yde-goes ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
|
@@ -105,7 +105,8 @@ typedef t_tuple (*t_normal_at)(t_shape *, t_tuple); | |
*/ | ||
typedef struct s_shape | ||
{ | ||
union { | ||
union | ||
{ | ||
t_sphere sphere; | ||
t_plane plane; | ||
t_cylinder cylinder; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters