Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
给出了一条线的起点和终点,如何获取android中的所有中间坐标?
谷歌搜索 Bresenham 的直线算法!
你有两点。你所需要的只是斜坡。有一种用于获得斜率的两点形式。
直线方程,两点形式:http ://en.wikipedia.org/wiki/Linear_equation#Two-point_form