Дополнения в описание проекта / Some addions in the description of the project
This commit is contained in:
parent
2ef0fc17c2
commit
3245407af4
8 changed files with 252 additions and 6 deletions
26
docs/english/Vector2.md
Normal file
26
docs/english/Vector2.md
Normal 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;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue