Skip to main content

project 投影

project

类型: MethodDeclaration

所属类: Matrix

定义位置: webgl.ts

描述

投影

参数 flip: 是否垂直翻转(-1或1)

参数 width: 屏幕宽度

参数 height: 屏幕高度

返回值:当前矩阵

参数

参数名类型描述默认值
flipnumber--
widthnumber--
heightnumber--

返回值

类型: this

当前矩阵

源代码

位置: 第 2816 行

public project(flip: number, width: number, height: number): this {
this[0] = 2 / width
this[1] = 0
this[3] = 0
this[4] = 2 * flip / height
this[6] = -1
this[7] = -flip
return this
}

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