大约有 35 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0035 秒)
...Stride); var indices=new Uint16Array(this._numberIndices); var sliceAngle=(Math.PI *2.0)/ this._slices; var halfHeight=this._height / 2; var curAngle=0; var verticeCount=0; var posX=0; var posY=0; var posZ=0; var vc=0; var ic=0; for (var tv=0;tv <=this._slices;tv++){ if (tv===0){ vertices[vc++]=0...
来源: Laya_社区 发布时间: 20180113
...e = 0; Laya.timer.frameLoop(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin(scaleValue * 20) * 2; glitter.addGlitterByPositions(pos1, pos2...
来源: Laya_示例 发布时间: 20241117
... //画到B点 ["lineTo", dingBianW + (lineW - dingBianW) / 2, -_totalH / Math.sin((90 - Math.abs(skewXNum)) / 180 * Math.PI)], //再画到C点 ["lineTo", (lineW - dingBianW) / 2, -_totalH / Math.sin((90 - Math.abs(skewXNum)) / 180 * Math.PI)], //继续画到D点 ["closePath"] //闭合路径 ]; //...
来源: Laya_社区 发布时间: 20180717
...] - 1; } x3d = tpoint1[i]; y3d = tpoint2[i]; z3d = tpoint3[i]; ty = (y3d * Math.cos(vx)) - (z3d * Math.sin(vx)); tz = (y3d * Math.sin(vx)) + (z3d * Math.cos(vx)); tx = (x3d * Math.cos(vy)) - (tz * Math.sin(vy)); tz = (x3d * Math.sin(vy)) + (tz * Math.cos(vy)); ox = tx; tx = (tx * Math.cos(vz)) - (ty...
来源: Laya_示例 发布时间: 20241117
...] - 1; } x3d = tpoint1[i]; y3d = tpoint2[i]; z3d = tpoint3[i]; ty = (y3d * Math.cos(vx)) - (z3d * Math.sin(vx)); tz = (y3d * Math.sin(vx)) + (z3d * Math.cos(vx)); tx = (x3d * Math.cos(vy)) - (tz * Math.sin(vy)); tz = (x3d * Math.sin(vy)) + (tz * Math.cos(vy)); ox = tx; tx = (tx * Math.cos(vz)) - (ty...
来源: Laya2.0_示例 发布时间: 20241117
...= axisU.y; let z:number= axisU.z; let length:number= Math.sqrt(Vector3.dot(vector3d,vector3d)); let result:Vector3 = new Vector3(); result.x = u *Math.cos(T) + (y * w - z * v) *Math.sin(T) + x *(x * u + y * v + z * w)*( 1- Math.cos(T)); ...
来源: Laya_社区 发布时间: 20191218
...Ape() { const Sprite = Laya.Sprite; const layoutRadius = 150, radianUnit = Math.PI / 2; // 该容器用于装载4张猩猩图片 this.apesCon = new Sprite(); Laya.stage.addChild(this.apesCon); // 添加4张猩猩图片 let ape; for (let i = 0; i < 4; i++) { ape = new Sprite(); this.apesCon.addChild(...
来源: Laya2.0_示例 发布时间: 20241117
...只猩猩距离中心点150像素 var layoutRadius = 150; var radianUnit = Math.PI / 2; apesCtn = new Sprite(); Laya.stage.addChild(apesCtn); // 添加4张猩猩图片 for (var i = 0; i < 4; i++) { var ape = new Sprite(); ape.loadImage("../../res/apes/monkey" + i + ".png"); ape.pivot(55, 72); // 以...
来源: Laya_示例 发布时间: 20241117
...540||ball.x<10) { xflag=! xflag; } if (xflag) { ball.x+=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } else { ball.x-=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } } } } CurveDemo.rar 2016-04-24 0 0 分享 微博 QZONE 微信 winnershili 赞同来自: 你这个明明是波形啊. 2017-11-0...
来源: Laya_社区 发布时间: 20160424
...) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleValue = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export...
来源: Laya_示例 发布时间: 20241117