Skip to content

CF_V3

Category: math
GitHub: cute_math3d.h


A 3d vector.

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

Remarks

Construct one with cf_v3, which splats a single argument or takes all three:

CF_V3 a = cf_v3(1.0f);            // { 1, 1, 1 }
CF_V3 b = cf_v3(1.0f, 2.0f, 3.0f);

The C++ API uses V3(x, y, z). Most operators (cf_add, cf_dot, cf_len, ...) are shared with CF_V2 and dispatch on the argument type.

cf_norm
CF_V4
CF_M4x4
cf_v3
cf_dot
cf_cross
cf_len