• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 474 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0050 秒)

31. laya.d3.math.MathUtils3D_API3.0 [ 97%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/MathUtils3D" MathUtils3D Class MathUtils3D MathUtils3D 类用于创建数学工具。 Hierarchy MathUtils3D Index Constructors constructor Properties Deg2Rad MaxValue MinValue zeroTolerance Methods fastInvSqrt isZero nea...

来源: Laya3.0_api 发布时间: 20231102

32. laya.maths.Matrix3x3_API3.0 [ 97%]

... Public/Protected All Inherited Externals Only exported Menu Globals "laya/maths/Matrix3x3" Matrix3x3 Class Matrix3x3 Matrix3x3 类用于创建3x3矩阵。 Hierarchy Matrix3x3 Implements IClone Index Constructors constructor Properties elements DEFAULT Methods clone cloneTo determinant identity inve...

来源: Laya3.0_api 发布时间: 20231115

33. laya.d3.math.Matrix3x3_API3.0 [ 97%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Matrix3x3" Matrix3x3 Class Matrix3x3 Matrix3x3 类用于创建3x3矩阵。 Hierarchy Matrix3x3 Implements IClone Index Constructors constructor Properties elements DEFAULT Methods clone cloneTo determinant identity inver...

来源: Laya3.0_api 发布时间: 20231102

34. laya.d3.math.Ray_API3.0 [ 97%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/Ray" Ray Class Ray Ray 类用于创建射线。 Hierarchy Ray Index Constructors constructor Properties direction origin Methods at Constructors constructor new Ray(origin: Vector3, direction: Vector3): Ray Defined in la...

来源: Laya3.0_api 发布时间: 20231115

35. laya.d3.math.ContainmentType_API3.0 [ 97%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/ContainmentType" ContainmentType Class ContainmentType ContainmentType 类用于定义空间物体位置关系。 Hierarchy ContainmentType Index Properties Contains Disjoint Intersects Properties Static Contains Contain...

来源: Laya3.0_api 发布时间: 20231115

36. 让 CylinderMesh 支持椎体 [ 97%]

...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

37. laya.d3.math.RandX_API3.0 [ 96%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/RandX" RandX Class RandX Rand 类用于通过128位整型种子创建随机数,算法来自:https://github.com/AndreasMadsen/xorshift。 Hierarchy RandX Index Constructors constructor Properties defaultRand Methods rando...

来源: Laya3.0_api 发布时间: 20231115

38. 绘制梯形 出错问题~ [ 96%]

... //画到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

39. Sprite-缓存为静态图像 [ 95%]

... = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; textBox.addChild(text); } //缓存为静态...

来源: Laya_示例 发布时间: 20241117

40. Sprite-缓存为静态图像 [ 95%]

...ext = new Text(); textBox.addChild(text); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#ccc"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; } //缓存为静态图像 textBox.cacheAs = "bi...

来源: Laya2.0_示例 发布时间: 20241117