Method ToGeoTransform3
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
ToGeoTransform3(Matrix)
Converts a Tekla transformation matrix to a GeometryHelper transformation.
public static GeoTransform3 ToGeoTransform3(this Matrix matrix)
Parameters
matrixMatrixThe Tekla transformation matrix to convert.
Returns
- GeoTransform3
The converted GeoTransform3.
Remarks
Tekla stores four rows of three, the fourth row carrying the translation, and applies it on the right for row vectors. GeometryHelper stores a full four by four applied on the left for column vectors, so the two are transposes of each other and the translation moves from the last row to the last column.
Exceptions
- ArgumentNullException
Thrown when
matrixis null.