Skip to content

CF_V2

Category: math
GitHub: cute_math.h


A 2d vector.

Struct Members Description
float x The x component.
float y The y component.

Remarks

To construct a vector you may use the function cf_v2, which is defined like this:

CF_V2 cf_v2(float x, float y);

The C++ API uses V2(x, y).

cf_div_v2_f
cf_add
cf_sub
cf_dot
cf_mul_v2_f