Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs3-25sp
project02
Commits
f2f7f9a8
Commit
f2f7f9a8
authored
1 month ago
by
Maxwell F. (Max) Chen
Browse files
Options
Download
Email Patches
Plain Diff
docs
parent
3ae7bbf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/body.h
+2
-6
include/body.h
with
2 additions
and
6 deletions
+2
-6
include/body.h
View file @
f2f7f9a8
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment