Дополнения в описание проекта / Some addions in the description of the project

This commit is contained in:
Andrey Pokidov 2024-11-22 19:20:18 +07:00
parent 2ef0fc17c2
commit 3245407af4
8 changed files with 252 additions and 6 deletions

26
docs/english/Vector2.md Normal file
View file

@ -0,0 +1,26 @@
# Two dimensional vectors
There are two types for two dimensional vectors:
- BgFP32Vector2 for single precision vectors
- BgFP64Vector2 for double precision vectors
Vectors of BgFP32Vecto2 type use **float** (binary32 of IEEE 754) type to store
coordinate values.
Vectors of BgFP64Vecto2 type use **double** (binary64 of IEEE 754) type to store
coordinate values.
The both types are structures with two fields: **x1** and **x2**
The definition of the types:
typedef struct
{
float x1, x2;
} BgFP32Vector2;
typedef struct
{
double x1, x2;
} BgFP64Vector2;