Commit f2f7f9a8 authored by Maxwell F. (Max) Chen's avatar Maxwell F. (Max) Chen
Browse files

docs

parent 3ae7bbf0
Showing with 2 additions and 6 deletions
+2 -6
......@@ -73,9 +73,7 @@ double body_get_velocity_y(body_t *body);
* Computes the area of a body.
* See https://en.wikipedia.org/wiki/Shoelace_formula#Statement.
*
* @param body the pointer to the body,
* listed in a counterclockwise direction. There is an edge between
* each pair of consecutive vertices, plus one between the first and last.
* @param body the pointer to the body
* @return the area of the body
*/
double body_area(body_t *body);
......@@ -84,9 +82,7 @@ double body_area(body_t *body);
* Computes the center of mass of a body.
* See https://en.wikipedia.org/wiki/Centroid#Of_a_polygon.
*
* @param body the pointer to the body,
* listed in a counterclockwise direction. There is an edge between
* each pair of consecutive vertices, plus one between the first and last.
* @param body the pointer to the body
* @return the centroid of the body
*/
vector_t body_centroid(body_t *body);
......
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