Matrix3D problem

Matrix3D problem

Anonymous
Not applicable
707 Views
3 Replies
Message 1 of 4

Matrix3D problem

Anonymous
Not applicable
Hello, Guys.

In Arx the class AcGeMatrix3d has methods like 'setToTranslation', 'setToRotation'. In .NET this are now readonly properties. Does anyone know how to set this in .NET?

I would really appreciate the help, friends.

Bruno Neves Pires Silva
0 Likes
708 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Dont bother, guys. I had learn myself. Thanx.
0 Likes
Message 3 of 4

Anonymous
Not applicable
The properties are read-only because the managed Matrx3d is a struct/value type (e.g., its fields cannot be modified).

Matrix3d m = Matrix3d.Identity;

// Set translation:

m *= Matrix3d.Displacement( new Vector3d( x, y, z )); // x,y,z translation

// Set rotation (rotate by PI/2 around WCS Z axis)

m *= Matrix3d.Rotation( Math.PI/2.0, Vector3d.ZAxis, Point3d.Origin );


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2008
Supporting AutoCAD 2000 through 2008
http://www.acadxtabs.com

wrote in message news:5865390@discussion.autodesk.com...
Hello, Guys.

In Arx the class AcGeMatrix3d has methods like 'setToTranslation', 'setToRotation'. In .NET this are now readonly properties. Does anyone know how to set this in .NET?

I would really appreciate the help, friends.

Bruno Neves Pires Silva
0 Likes
Message 4 of 4

Anonymous
Not applicable
Thanx, Tonny.
0 Likes