BufferGeometry
Object3D
Raycaster
Camera
CubeCamera
PerspectiveCamera
OrthographicCamera
StereoCamera
Clock
Curve
CurvePath
Path
Shape
ShapePath
ArrowHelper
AxesHelper
BoxHelper
Box3Helper
CameraHelper
DirectionalLightHelper
GridHelper
PolarGridHelper
HemisphereLightHelper
PlaneHelper
PointLightHelper
SkeletonHelper
SpotLightHelper
Light
PointLight
RectAreaLight
SpotLight
DirectionalLight
HemisphereLight
LightShadow
PointLightShadow
AnimationLoader
AudioLoader
BufferGeometryLoader
CompressedTextureLoader
CubeTextureLoader
DataTextureLoader
FileLoader
ImageBitmapLoader
ImageLoader
Loader
LoaderUtils
MaterialLoader
ObjectLoader
TextureLoader
LoadingManager
Material
Box2
Box3
Color
Cylindrical
Euler
Frustum
Interpolant
Line3
MathUtils
Matrix3
Matrix4
Plane
Quaternion
AnimationAction
AnimationClip
AnimationMixer
AnimationObjectGroup
AnimationUtils
keyframeTrack
PropertyBinding
PropertyMixer
BooleanKeyframeTrack
QuaternionKeyframeTrack
StringKeyframeTrack
Audio
AudioAnalyser
AudioContext
AudioListener
PositionalAudio

Matrix3.transposeIntoArray()

描述

Matrix3.transposeIntoArray(array) 方法将当前 Matrix3 对象的转置矩阵元素值放入一个数组中。

转置矩阵是将一个矩阵的行和列交换位置而得到的矩阵,即 $A_{i,j}=A_{j,i}$。在三维计算中,转置矩阵常用于将点从本地坐标系转换到世界坐标系。

参数

  • array :存储矩阵元素值的数组,长度为 9。

返回值

无返回值。

示例

const matrix = new THREE.Matrix3();
matrix.set(
  1, 2, 3,
  4, 5, 6,
  7, 8, 9
);
const array = new Array(9);
matrix.transposeIntoArray(array);
console.log(array); // [1, 4, 7, 2, 5, 8, 3, 6, 9]

参考文献