diff --git a/vector.h b/vector.h index 0ad30bd50d34941580787e29dbd6c8cc7180e384..214c2d8c549fbe470e9667f11b8c14dbdcd949a1 100644 --- a/vector.h +++ b/vector.h @@ -14,9 +14,9 @@ /** * A structure to represent 2D vectors. * Note that this line declares a "struct vector" type - * and aliases it to "Vector". + * and aliases it to "vector_t". */ -typedef struct vector Vector; +typedef struct vector vector_t; /** @brief Allocates memory for and initializes a vector * to have x-component x and y-component y @@ -25,14 +25,14 @@ typedef struct vector Vector; * @param y the y-component of the new vector * @return a new vector that represents <x, y> */ -Vector *vec_init(double x, double y); +vector_t *vec_init(double x, double y); /** @brief Frees the memory associated with vec * * @param vec the vector to free * @return Void. */ -void vec_free(Vector *vec); +void vec_free(vector_t *vec); /** @brief Returns a new vector that represents the sum of v1 and v2 * @@ -40,6 +40,6 @@ void vec_free(Vector *vec); * @param v2 a vector * @return a vector that represents the sum of v1 and v2 */ -Vector *vec_add(Vector *v1, Vector *v2); +vector_t *vec_add(vector_t *v1, vector_t *v2); #endif \ No newline at end of file