跳到主要内容

IDP.Math.KGeomLib.createRotateMatrix4() method

创建围绕轴旋转的变换矩阵。 旋转轴由一点和一向量定义,旋转角度由弧度值给出。

Create an transform matrix that does rotation about an axis. The axis is defined by a point and a vector. The angle is given in radians.

Signature:

createRotateMatrix4(angle: number, a: KVector3d, center: KPoint3d): KMatrix4;

Links: createRotateMatrix4(angle: number, a: KVector3d, center: KPoint3d): KMatrix4;

Parameters

Parameter

Type

Description

angle

number

旋转角弧度。

The angle of rotation in radians.

a

KVector3d

用于定义旋转轴的向量。

The vector to define the axis.

center

KPoint3d

用于定义旋转轴的点。

The point to define the axis.

Returns:

KMatrix4

旋转矩阵。

The rotation transform matrix.