跳到主要内容

KCircle3d.transform() method

对当前圆进行变换。 注意:如果变换之后的几何不是一个圆,则会抛出error, 本操作仅支持旋转和平移。

Transform this circle to a new one. NOTE: If the new one is not a circle, it will throw error. Only support for rotate and move translation now.

Signature:

transform(matrix: KMatrix4): boolean;

Links: transform(matrix: KMatrix4): boolean;

Parameters

Parameter

Type

Description

matrix

KMatrix4

变换矩阵。

The transform matrix.

Returns:

boolean

当执行正确的话,返回true。

Return true if successful, otherwise return false.