Skip to content

cf_parallel2

Category: math
GitHub: cute_math.h


Returns true the planes a-b and b-c are parallel with a distance tolerance.

bool cf_parallel2(CF_V2 a, CF_V2 b, CF_V2 c, float tol)

Remarks

You should experiment to find a good tol value, such as commonly used values like 1.0e-3f, 1.0e-6f, or 1.0e-8f. Different orders of magnitude are suitable for different tasks, so it may take some experience to figure out what a good tolerance is for your situation.

CF_V2
cf_lesser_v2
cf_greater_v2
cf_lesser_equal_v2
cf_greater_equal_v2
cf_parallel