Улучшение структуры документации

This commit is contained in:
Andrey Pokidov 2025-02-08 00:47:44 +07:00
parent 72b6690ad6
commit f8f6b07c81
20 changed files with 262 additions and 156 deletions

View file

@ -1,19 +1,12 @@
# Two dimensional vectors
There are two types for two dimensional vectors:
- BgcVector2FP32 for single precision vectors
- BgcVector2FP64 for double precision vectors
There are two types of 2D vectors in the library:
- **BgcVector2FP32** - vector using single-precision floating-point numbers
- **BgcVector2FP64** - vector using double-precision floating-point numbers
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:
Structure definitions:
```c
typedef struct
{
float x1, x2;
@ -23,4 +16,9 @@ The definition of the types:
{
double x1, x2;
} BgcVector2FP64;
```
## Functions
[Back](intro-eng.md)