如何在vb6中连续进行xy运动? [英] How to make a xy motion continuously in vb6?
本文介绍了如何在vb6中连续进行xy运动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
文本框用于键入x位置n y位置的值.
the text boxes is used to key in the value of x position n y position. then how to make line to locate the keyin position?
推荐答案
计算当前位置和目标位置之间的直线路径,将其切成一小段,并一次将点移动一个线段,直到到达新的目的地.
Calculate a line path between the current position and the destination position, chop it into a bunch of small segments, and move the point one segment at a time until it reaches the new destination.
这篇关于如何在vb6中连续进行xy运动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文