bgc-c/docs/vector2-eng.md

1.2 KiB

Two dimensional 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

Structure definitions:

    typedef struct
    {
        float x1, x2;
    } BgcVector2FP32;

    typedef struct
    {
        double x1, x2;
    } BgcVector2FP64;

Functions

Funtions for BgcVector2FP32 Funtions for BgcVector2FP64
bgc_vector2_reset_fp32 bgc_vector2_reset_fp64
bgc_vector2_set_values_fp32 bgc_vector2_set_values_fp64
bgc_vector2_copy_fp32 bgc_vector2_copy_fp64
bgc_vector2_swap_fp32 bgc_vector2_swap_fp64

Documentation