954 B
954 B
Two-dimensional vectors
Русская версия / Russian version
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:
typedef struct
{
float x, y;
} BGC_FP32_Vector2;
typedef struct
{
double x, y;
} BGC_FP64_Vector2;
The fields x and y are the coordinates of a 3D vector.
Functions
-
- bgc_fp32_vector2_reset
- bgc_fp64_vector2_reset
-
- bgc_fp32_vector2_set_values
- bgc_fp64_vector2_set_values
-
- bgc_fp32_vector2_copy
- bgc_fp64_vector2_copy
-
- bgc_fp32_vector2_swap
- bgc_fp64_vector2_swap