Anonymous avatar Anonymous committed fa74c04

Add other comments

Comments (0)

Files changed (3)

include/pgAABBBox.h

 #include "pgphysics.h"
 
 /**
- * TODO
+ * Generate an AABBBox by defining its attributes
  *
  * @param left
  * @param right
 AABBBox AABB_Gen(double left, double right, double bottom, double top);
 
 /**
- * TODO
+ * expand the aabbbox
  *
  * @param box
  * @param p
 void AABB_ExpandTo(AABBBox* box, PyVector2* p);
 
 /**
- * TODO
+ * Set the aabbbox to infinite big
  *
  * @param box
  */
 void AABB_Clear(AABBBox* box);
 
 /**
- * TODO
+ * Test whether two boxes are overlaped
  *
  * @param boxA
  * @param boxB
 int AABB_IsOverlap(AABBBox* boxA, AABBBox* boxB, double eps);
 
 /**
- * TODO
+ * Test whether the point is in the aabbbox
  *
  * @param p
  * @param box

include/pgBodyObject.h

 #include "pgphysics.h"
 
 /**
- * TODO
+ * Free update body's velocity and angle velocity 
+ * swithout considering any constraint
  *
  * @param body
  * @param gravity
     double dt);
 
 /**
- * TODO
+ * Free update body's position and rotation without considering any constraint
  *
  * @param body
  * @param dt
 void PyBodyObject_FreeUpdatePos (PyBodyObject* body, double dt);
 
 /**
- * TODO
+ * Correct Body's attributes by solving constraints
  *
  * @param body
  * @param dt

include/pgVector2.h

  */
 
 /**
- * TODO
+ * Test whether the two double number are nearly equal
  *
  * @param a
  * @param b
 int PyMath_IsNearEqual(double a, double b);
 
 /**
- * TODO
+ * Test whether the number a is less than b
  *
  * @param a
  * @param b
 int PyMath_LessEqual(double a, double b);
 
 /**
- * TODO
+ * Test whether the number a is larger than b
  *
  * @param a
  * @param b
 int PyMath_MoreEqual(double a, double b);
 
 /**
- * TODO
+ * Test whether the number a is equal than b
  *
  * @param a
  * @param b
 int PyVector2_Equal(PyVector2* a, PyVector2* b);
 
 /**
- * TODO
+ * return value = f * a
  *
  * @param a
  * @param f
 PyVector2 PyVector2_MultiplyWithReal (PyVector2 a, double f);
 
 /**
- * TODO
+ * return value = (1/f) * a
  *
  * @param a
  * @param f
 PyVector2 PyVector2_DivideWithReal (PyVector2 a, double f);
 
 /**
- * TODO
+ * basic cross operation
  *
  * @param f
  * @param a
 PyVector2 PyVector2_fCross(double f, PyVector2 a);
 
 /**
- * TODO
+ *basic cross operation
  *
  * @param a
  * @param f
 PyVector2 PyVector2_Crossf(PyVector2 a, double f);
 
 /**
- * TODO
+ * project a vector into direction p
  *
  * @param a
  * @param p
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.