M = makehgtform()
M = makehgtform('translate', [tx ty tz])
M = makehgtform('scale', s)
M = makehgtform('xrotate', r)
M = makehgtform('yrotate', r)
M = makehgtform('zrotate', r)
M = makehgtform(transform1, value1, transform2, value2, ...)
| Parameter | Description |
|---|---|
| 'translate' | a three-element vector [tx ty tz]: a translation. |
| 'scale' | a scalar or a three-element vector: a uniform or per-axis scaling. |
| 'xrotate', 'yrotate', 'zrotate' | a scalar angle in radians: a rotation about that axis. |
| Parameter | Description |
|---|---|
| M | a 4-by-4 transformation matrix. |
makehgtform builds a 4-by-4 transformation matrix from a sequence of translation, scaling and rotation transforms. The transforms are multiplied left to right, so the first one listed is applied last to a point. The result is suitable for the Matrix property of a transform object.
M = makehgtform('translate', [1 0 0], 'zrotate', pi / 2)
| Version | Description |
|---|---|
| 2.0.0 | Initial version. |