.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Matrix3D problem

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
440 Views, 3 Replies

Matrix3D problem

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
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Dont bother, guys. I had learn myself. Thanx.
Message 3 of 4
Anonymous
in reply to: Anonymous

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
Message 4 of 4
Anonymous
in reply to: Anonymous

Thanx, Tonny.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost