bgc-c/docs/vector3-eng.md

1.2 KiB

Three-dimensional vectors

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

  • BGC_FP32_Vector3 - vector using single-precision floating-point numbers
  • BGC_FP64_Vector3 - vector using double-precision floating-point numbers

Structure definitions:

    typedef struct
    {
        float x, y, z;
    } BGC_FP32_Vector3;

    typedef struct
    {
        double x, y, z;
    } BGC_FP64_Vector3;

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