bgc-c/docs/vector2-eng.md

440 B

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

Back