fmeobjects.FMEGeometryTools.matrixTransform

FMEGeometryTools.matrixTransform(geometry, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34)

This method performs a 3D matrix transformation on the geometry passed in. The order in which parameters are passed in is important and it should be row wise e.g. for a matrix the order of the parameters should be m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34.

|m11 m12 m13 m14|

|m21 m22 m23 m24|

|m31 m32 m33 m34|

After doing the transformation, geometry is replaced with the transformed geometry if the method is successful. Otherwise, the matrix transform has failed and a FMEException is thrown.

Parameters:

geometry (FMEGeometry) – The geometry to apply the transformation Matrix to.

Return type:

FMEGeometry

Returns:

The transformed geometry. Note: This method returns a terminal geometry type of the FMEGeometry; i.e. one of the leaf classes in the FMEGeometry inheritance graph. For example, a FMEAggregate is returned if the geometry truly is a aggregate.

Raises:

FMEException – An exception is raised if an error occurred.