Chalarangelo / 30-seconds-of-code

Short code snippets for all your development needs

Home Page:https://30secondsofcode.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add snippet that checks if a point exists on a straight line between two other points

richard-oden opened this issue · comments

If a straight line is drawn between point A and point B, return true if that line contains point C, otherwise return false.

I recently had to solve this in my own project. Would love to add if it's not a duplicate!

Thanks for the idea, but I think geometry snippets are mostly useful in graphics drawing, which is not an area we have much expertise in nor do we have any intent of adding snippets around those use cases right now.