跳到主要内容

translateY 垂直平移

translateY​

类型: MethodDeclaration

所属类: Matrix

定义位置: webgl.ts

描述​

垂直平移

参数 y: 水平偏移距离

返回值:当前矩阵

参数​

参数名类型描述默认值
ynumber--

返回值​

类型: this

当前矩阵

源代码​

位置: 第 2758 行

public translateY(y: number): this {
this[6] += this[3] * y
this[7] += this[4] * y
return this
}

文档生成时间:2026/2/1 16:51:41