bgc-c/docs/vector2-eng.md

1.3 KiB

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;

Functions

Funtions for BGC_FP32_Vector2 Funtions for BGC_FP64_Vector2
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

Documentation