跳到主要内容

IDP.Math.KGeomLib.createRotateMatrix3() method

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

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

Signature:

createRotateMatrix3(angle: number, center: KPoint2d): KMatrix3;

Links: createRotateMatrix3(angle: number, center: KPoint2d): KMatrix3;

Parameters

Parameter

Type

Description

angle

number

旋转角弧度。

The angle of rotation in radians.

center

KPoint2d

定义旋转轴的点。

The point to define the axis.

Returns:

KMatrix3

旋转变换矩阵。

The rotation transform matrix.