API Docs for: 1.10.1 最后更新日期:2016年03月28日
Google搜索   
Show:

LMatrix Class

Defined in: geom/LMatrix.js:1

Available since 1.8.0

LMatrix 类表示一个转换矩阵,它确定如何将点从一个坐标空间映射到另一个坐标空间。

Constructor

LMatrix

() public

Defined in geom/LMatrix.js:1

Available since 1.8.0

Methods

add

(
  • matrix
)
LMatrix public

Defined in geom/LMatrix.js:168

Available since 1.9.8

与另一个矩阵相加。

Parameters:

  • matrix LMatrix

    一个LMatrix对象。

Returns:

LMatrix:

矩阵本身。

clone

() LMatrix public

Defined in geom/LMatrix.js:209

Available since 1.9.8

对象复制。

Returns:

LMatrix:

一个LMatrix对象。

identity

() public

Defined in geom/LMatrix.js:97

Available since 1.9.8

为每个矩阵属性设置一个值,该值将导致 null 转换。

isIdentity

() Boolean public

Defined in geom/LMatrix.js:81

Available since 1.9.8

检验矩阵是否是空,即不发生变换。

Returns:

Boolean:

返回矩阵是否是空。

rotate

(
  • angle
)
LMatrix public

Defined in geom/LMatrix.js:106

Available since 1.9.8

对 LMatrix 对象应用旋转转换。

Parameters:

  • angle Float

    旋转角度。

Returns:

LMatrix:

矩阵本身。

scale

(
  • sx
  • sy
)
LMatrix public

Defined in geom/LMatrix.js:123

Available since 1.9.8

对 LMatrix 对矩阵应用缩放转换。

Parameters:

  • sx Float

    用于沿 x 轴缩放对象的乘数。

  • sy Float

    用于沿 y 轴缩放对象的乘数。

Returns:

LMatrix:

矩阵本身。

skew

(
  • kx
  • ky
)
LMatrix public

Defined in geom/LMatrix.js:153

Available since 1.9.8

沿 x 和 y 轴倾斜。

Parameters:

  • kx Float

    沿 x 轴倾斜的量。

  • ky Float

    沿 y 轴倾斜的量。

Returns:

LMatrix:

矩阵本身。

translate

(
  • dx
  • dy
)
LMatrix public

Defined in geom/LMatrix.js:138

Available since 1.9.8

沿 x 和 y 轴平移矩阵,由 dx 和 dy 参数指定。

Parameters:

  • dx Float

    沿 x 轴向右移动的量(以像素为单位)。

  • dy Float

    沿 y 轴向下移动的量(以像素为单位)。

Returns:

LMatrix:

矩阵本身。