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

Matrix4.multiplyMatrices()

描述

该方法将两个4x4矩阵相乘并返回结果矩阵。

语法

multiplyMatrices( matrixA, matrixB )

参数

  • matrixA - 第一个4x4矩阵
  • matrixB - 第二个4x4矩阵

返回值

  • 一个新的4x4矩阵,表示 matrixA 和 matrixB 相乘的结果。

示例

var matrix1 = new THREE.Matrix4();
var matrix2 = new THREE.Matrix4();

matrix1.makeRotationX( Math.PI / 4 );
matrix2.makeRotationY( Math.PI / 4 );

var resultMatrix = new THREE.Matrix4().multiplyMatrices( matrix1, matrix2 );

参考文献