Skip to content

cf_det2

Category: math
GitHub: cute_math.h


Returns the 2x2 determinant of a matrix constructed with a and b as its columns.

float cf_det2(CF_V2 a, CF_V2 b) { return a.x * b.y - a.y * b.x; }

Remarks

Also known as the 2D cross product.

CF_V2
cf_skew
cf_cw90
cf_perp
cf_cross