小编use*_*872的帖子

Javascript函数就像actionscript的规范化一样(1)

我需要一个公式来返回xy点的标准化数字 - 类似于actionscript的normalize()函数.

var normal = {x:pt1.x-pt2.x,y:pt1.y-pt2.y};

normal = Normalize(1) // this I do not know how to implement in Javascript
Run Code Online (Sandbox Code Playgroud)

javascript actionscript-3

4
推荐指数
1
解决办法
5054
查看次数

标签 统计

actionscript-3 ×1

javascript ×1