Matrix4

개요

Matrix4 Aspose.3D FOSS for Typescript의 클래스입니다.

Matrix4.constructor는 16 요소 숫자 배열에서 새로운 4x4 행렬을 생성합니다.

이 클래스는 타이프스크립트 프로그램에서 매트릭스4 객체와 작업하는 17가지 방법을 제공합니다. 이용 가능한 방법에는 다음이 포함됩니다.: concatenate, constructor, decompose, equals, getItem, identity, inverse, normalize, rotate, rotateFromEuler, scale, setItem, 그리고 5가지 추가적인 방법. 모든 퍼블릭 멤버들은 Aspose.3D FOSS for Typescript 패키지를 설치한 후 어떤 타입스크립트 애플리케이션에도 액세스할 수 있습니다. 성질: determinant, m00, m01, m02, m03, m10,그리고 11명 더 있습니다.

설명

Matrix4 Aspose.3D FOSS 라이브러리에서 24개의 메서드와 17가지 속성을 프로그램화할 수 있는 클래스입니다.

핵심 능력은 다음과 같습니다.: number; number; number.이러한 작업은 개발자가 matrix4 기능을 TypeScript 애플리케이션에 직접 통합할 수 있도록 합니다.

이 클래스는 또한 determinant property (결정자를 얻는다).

클래스는 4개의 구성 요소 과부하를 제공하여 호출 컨텍스트에 따라 유연한 초기화를 허용한다.

속성

이름유형Access설명
m00number읽기/쓰기m00를 가져옵니다.
m01number읽기/쓰기m01을 가져옵니다.
m02number읽기/쓰기m02를 가져옵니다.
m03number읽기/쓰기m03을 가져옵니다.
m10number읽기/쓰기m10을 가져옵니다.
m11number읽기/쓰기m11을 가져옵니다.
m12number읽기/쓰기m12를 가져옵니다.
m13number읽기/쓰기m13을 가져옵니다.
m20number읽기/쓰기m20를 가져옵니다.
m21number읽기/쓰기m21을 가져옵니다.
m22number읽기/쓰기m22를 가져옵니다.
m23number읽기/쓰기m23을 가져옵니다.
m30number읽기/쓰기m30을 가져옵니다.
m31number읽기/쓰기m31을 가져옵니다.
m32number읽기/쓰기m32를 가져옵니다.
m33number읽기/쓰기m33을 가져옵니다.
determinantnumber읽으세요.행렬식을 가져옵니다.

메서드

Signature설명
constructor()16 요소 숫자 배열에서 새로운 4x4 행렬을 생성합니다.
constructor(matrix: number[])
constructor()
constructor()
getItem(key: number)number주어진 선형 지수에서 행렬 요소를 반환합니다.
setItem(key: number, value: number)항목 값을 설정합니다.
transpose()Matrix4이 행렬의 대입수인 새로운 매트릭스4를 반환합니다.
concatenate(m2: Matrix4)Matrix4
normalize()Matrix4새로운 매트릭스4를 반환합니다. 유니폼 스케일링을 제거한 (단위 길이 축)
inverse()Matrix4
decompose(translation: any[], scaling: any[], rotation: any[])제공된 배열에 번역, 확장 및 회전을 추출합니다.
setTRS(translation: any, rotation: any, scale: any)trs 값을 설정합니다.
toArray()number[]행렬 요소를 16 길이의 수 배열로 줄 대순으로 반환합니다.
identity()Matrix4행렬을 정체성 행성에 재설정하고 이 인스턴스를 반환합니다.
translate(tx: number, ty: number, tz: number)Matrix4(tx,ty,tz) 또는 벡터로 변환을 적용하고 이 행렬을 반환합니다.
translate(v: any)Matrix4
translate(tx: any, ty: any, tz: any)Matrix4
scale(sx: number, sy: number, sz: number)Matrix4(sx,sy,sz) 또는 벡터에 의해 확장하여 이 행렬을 반환합니다.
scale(v: any)Matrix4
scale(sx: any, sy: any, sz: any)Matrix4
rotateFromEuler(rx: number, ry: number, rz: number)Matrix4
rotateFromEuler(v: any)Matrix4
rotateFromEuler(rx: any, ry: any, rz: any)Matrix4
rotate(angle: number, axis: any)Matrix4각과 축 또는 쿼터니온에서 회전 행렬을 생성합니다.
rotate(q: Quaternion)Matrix4
rotate(angle: any, axis: any)Matrix4
toString()string매트릭스 값의 인간-읽기 가능한 문자열 표현을 반환합니다.
equals(other: Matrix4)boolean이 행렬을 다른 원소별 평등과 비교합니다.

참조

 한국어