Skip to content

cf_reflect_v2

Category: math
GitHub: cute_math.h


Returns a vector of equal length to a but with its direction reflected

CF_V2 cf_reflect_v2(CF_V2 a, CF_V2 n)
Parameters Description
a The vector being reflected
n The normal of the plane that is being reflected off of

CF_V2
cf_neg_v2
cf_norm
cf_safe_norm