Skip to content

cf_perp

Category: math
GitHub: cute_math.h


Returns the skew of a vector. This acts like a 90 degree rotation counter-clockwise. In this case perp stands for perpendicular.

CF_V2 cf_perp(CF_V2 a) { return cf_v2(-a.y, a.x); }

CF_V2
cf_skew
cf_cw90
cf_det2
cf_cross