用于三维动画的低成本箭头绘制函数及示例。
Low-cost 3d arrow function for animation. Zip file has function and example.
目前,箭头锥是用一个随机的交叉积(简单方法)生成的。
Right now, the arrow-cone is generated using a random cross-product (the easy way).
如果轴x,y,z的数值范围具有很大的不同数量级,这就使得箭头函数不能很好地工作。
This makes the arrow function not work well if axis x, y, z limits have vastly different orders of magnitude.
为了解决这个bug并提高速度和可靠性,需要重新实现这一数学功能(更难的方法)。
This math needs to re-implemented (the hard way) in order to resolve bugs and improve speed and reliability.
'arrow.m'为函数文件
'arrow.m' is function file
'arrow_example.m'是基于箭头函数撰写的一些示例。
'arrow_example.m' is a script that runs some examples using the arrow function.
给出了放置箭头尾部和头部、调整箭头大小和着色以及将箭头对象与动画线和块混合的示例。
It gives examples for placing arrow tail and head, arrow sizing and coloring, and mixing arrow object with animated lines and patches.
完整源码下载请点击“阅读原文”