Tranformation in C#

Hello Everyone,
I want simply to move a rectangle in c#. when I use Rhino.Geometry.Transform.Translation( Vector3d), As return I get boolean instead of transformed rectangle. How can I solve this problem?

Well, the Rectange3d.Transform method does return a boolean value.

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Rectangle3d_Transform.htm

Transform the rectangle and then return it…

– Dale

When I return it I get this Error.

I was thinking of this:

A = rect;
rect.Transform(Transform.Translation(dir));
B = rect;

– Dale

It gives me the same Rectangle again. Not the transformed one.

Check value of vec, as I think it is zero…

Problem is solved Dale. It was my fault. I shouldn’t have gone from line to vector. Thanks for you help.

Best,
MM