Улучшение читаемости примеров для векторов, добавление описания функций copy и swap для кватернионов
This commit is contained in:
parent
cc3ce1f327
commit
f402f68516
22 changed files with 325 additions and 77 deletions
|
|
@ -43,14 +43,14 @@ Example of use:
|
|||
|
||||
int main()
|
||||
{
|
||||
BGC_FP32_Vector2 my_vector1, my_vector2;
|
||||
BGC_FP32_Vector2 v1, v2;
|
||||
|
||||
my_vector1.x = -2.0f;
|
||||
my_vector1.y = 7.4f;
|
||||
v1.x = -2.0f;
|
||||
v1.y = 7.4f;
|
||||
|
||||
bgc_fp32_vector2_copy(&my_vector2, &my_vector1);
|
||||
bgc_fp32_vector2_copy(&v2, &v1);
|
||||
|
||||
printf("x = %f, y = %f\n", my_vector2.x, my_vector2.y);
|
||||
printf("x = %f, y = %f\n", v2.x, v2.y);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue