Essay record

Calculate whether two Lines are Parallel using the Determinant

Record
Essay / / 1 min read / 76 words
Tags
Unfiled

DISCLOSURE: Some links may be affiliate links. Details

**Problem: **Figure out whether two lines are parallel using the determinant

**Solution: **If we have line AB and line CD (technically edges as lines continue on into infinity), then we can determine whether these two lines are parallel by taking the determinant of the two.

Computing P = AB | CD will give us the point at which the two lines intersect.  If the lines don’t intersect i.e. are parallel, then the result will be 0.

Built with CloudSeed Rust