Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

二维平面上两点组成的线段,判断另一点是否在这条线段上 #2

Open
sobird opened this issue Aug 4, 2019 · 0 comments
Labels

Comments

@sobird
Copy link
Member

sobird commented Aug 4, 2019

腾讯面试题,当时紧张没想到什么思路,后来一想思路比较简单:计算另外一点到线段两点的距离之和是否等于线段的长度,如果等于说明该点在这条线段上,否则不在。

@sobird sobird added the question label Aug 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant