bgc-c/docs/vector3-eng.md

1.2 KiB

Three-dimensional vectors

There are two types of 3D vectors in the library:

  • BgcVector3FP32 - vector using single-precision floating-point numbers
  • BgcVector3FP64 - vector using double-precision floating-point numbers

Structure definitions:

    typedef struct
    {
        float x1, x2, x3;
    } BgcVector3FP32;

    typedef struct
    {
        double x1, x2, x3;
    } BgcVector3FP64;

Functions

Funtions for BgcVector3FP32 Funtions for BgcVector3FP64
bgc_vector3_reset_fp32 bgc_vector3_reset_fp64
bgc_vector3_set_values_fp32 bgc_vector3_set_values_fp64
bgc_vector3_copy_fp32 bgc_vector3_copy_fp64
bgc_vector3_swap_fp32 bgc_vector3_swap_fp64

Documentation