small fixes for config, entity, and some physics functions for vector2
This commit is contained in:
parent
017629872f
commit
21a66f7fe6
5 changed files with 60 additions and 3 deletions
|
|
@ -28,6 +28,30 @@ void ARC_Vector2_Normalize(ARC_Vector2 *vector);
|
|||
*/
|
||||
void ARC_Vector2_RotateDegree(ARC_Vector2 *vector, float angle);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param vector1
|
||||
* @param vector2
|
||||
*/
|
||||
float ARC_Vector2_CrossProduct(ARC_Vector2 vector1, ARC_Vector2 vector2);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param vector
|
||||
* @param scalar
|
||||
*/
|
||||
ARC_Vector2 ARC_Vector2_CrossProductScalar(ARC_Vector2 vector, float scalar);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param scalar
|
||||
* @param vector
|
||||
*/
|
||||
ARC_Vector2 ARC_Vector2_ScalarCrossProduct(float scalar, ARC_Vector2 vector);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -221,7 +221,17 @@ void ARC_Config_UnloadFromString(ARC_Config *config, ARC_String **string);
|
|||
* @breif config the config to unload the file from
|
||||
* @breif path the location of the .chemical file to unload
|
||||
*/
|
||||
void ARC_Config_UnloadFromFile(ARC_Config *config, ARC_String *data);
|
||||
void ARC_Config_UnloadFromFile(ARC_Config *config, ARC_String *path);
|
||||
|
||||
/**
|
||||
* @brief takes a given file path and unloads it into the config
|
||||
*
|
||||
* @note this path will be based on wherever the executable is run from
|
||||
*
|
||||
* @breif config the config to unload the file from
|
||||
* @breif path the location of the .chemical file to unload
|
||||
*/
|
||||
void ARC_Config_UnloadFromFileWithCStr(ARC_Config *config, const char *path);
|
||||
|
||||
/**
|
||||
* @{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue