33 lines
1.3 KiB
Markdown
33 lines
1.3 KiB
Markdown
# Two-dimensional vectors
|
|
|
|
[Ðóññêàÿ âåðñèÿ / Russian version](vector2-rus.md)
|
|
|
|
There are two types of 2D vectors in the library:
|
|
- **BGC_FP32_Vector2** - vector using single-precision floating-point numbers
|
|
- **BGC_FP64_Vector2** - vector using double-precision floating-point numbers
|
|
|
|
Structure definitions:
|
|
|
|
```c
|
|
typedef struct
|
|
{
|
|
float x, y;
|
|
} BGC_FP32_Vector2;
|
|
|
|
typedef struct
|
|
{
|
|
double x, y;
|
|
} BGC_FP64_Vector2;
|
|
```
|
|
|
|
## Functions
|
|
|
|
| Funtions for BGC_FP32_Vector2 | Funtions for BGC_FP64_Vector2 |
|
|
|:-------------------------------------------------------------:|:-------------------------------------------------------------:|
|
|
| [bgc_fp32_vector2_reset](vector2/reset-eng.md) | [bgc_fp64_vector2_reset](vector2/reset-eng.md) |
|
|
| [bgc_fp32_vector2_set_values](vector2/set-values-eng.md) | [bgc_fp64_vector2_set_values](vector2/set-values-eng.md) |
|
|
| [bgc_fp32_vector2_copy](vector2/copy-eng.md) | [bgc_fp64_vector2_copy](vector2/copy-eng.md) |
|
|
| [bgc_fp32_vector2_swap](vector2/swap-eng.md) | [bgc_fp64_vector2_swap](vector2/swap-eng.md) |
|
|
|
|
|
|
[Documentation](intro-eng.md)
|