Click or drag to resize

Transform2dTryGetTransform2d Method (Transform, Transform2d)

Attempts to get the 2d transformation defined by the x and y rows and columns of a 4x4 transformation. This succeeds when transform is affine and maps the world xy plane to itself.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static bool TryGetTransform2d(
	Transform transform,
	out Transform2d transform2d
)

Parameters

transform
Type: Rhino.GeometryTransform
The 4x4 transformation to convert.
transform2d
Type: Rhino.GeometryTransform2d
The 2d transformation. This out reference will be assigned during this call.

Return Value

Type: Boolean
true on success. On failure transform2d is set to Transform2d.Nan.
See Also