Skip to main content

skewAt 在指定点倾斜

skewAt

类型: MethodDeclaration

所属类: Matrix

定义位置: webgl.ts

描述

在指定点倾斜

参数 x: 倾斜位置X

参数 y: 倾斜位置Y

参数 h: 水平倾斜系数

参数 v: 垂直倾斜系数

返回值:当前矩阵

参数

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

返回值

类型: this

当前矩阵

源代码

位置: 第 2775 行

public skewAt(x: number, y: number, h: number, v: number): this {
const a = this[0]
const b = this[1]
const c = this[3]
const d = this[4]
this[0] = a + c * v
this[1] = b + d * v
this[3] = a * h + c
this[4] = b * h + d
this[6] += (a - this[0]) * x + (c - this[3]) * y
this[7] += (b - this[1]) * x + (d - this[4]) * y
return this
}

文档生成时间:2025/7/7 12:07:07