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.

Transform the rectangle and then return it…

– Dale

When I return it I get this Error.

I was thinking of this:

A = rect;
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.