You need to sign in or sign up before continuing.
Commit 0ee03f20 authored by Caleb C. Sander's avatar Caleb C. Sander
Browse files

Vector -> vector_t

parent 7f302d8a
No related merge requests found
Showing with 5 additions and 5 deletions
+5 -5
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
/** /**
* A structure to represent 2D vectors. * A structure to represent 2D vectors.
* Note that this line declares a "struct vector" type * 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 /** @brief Allocates memory for and initializes a vector
* to have x-component x and y-component y * to have x-component x and y-component y
...@@ -25,14 +25,14 @@ typedef struct vector Vector; ...@@ -25,14 +25,14 @@ typedef struct vector Vector;
* @param y the y-component of the new vector * @param y the y-component of the new vector
* @return a new vector that represents <x, y> * @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 /** @brief Frees the memory associated with vec
* *
* @param vec the vector to free * @param vec the vector to free
* @return Void. * @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 /** @brief Returns a new vector that represents the sum of v1 and v2
* *
...@@ -40,6 +40,6 @@ void vec_free(Vector *vec); ...@@ -40,6 +40,6 @@ void vec_free(Vector *vec);
* @param v2 a vector * @param v2 a vector
* @return a vector that represents the sum of v1 and v2 * @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 #endif
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment