Transformation tra = new Transformation(); tra.Translation(10, 0, 0); Transformation rot = new Transformation(); rot.Rotation(Math.PI/6, Vector3D.AxisY); // angle in radians Transformation xform = tra * rot; // combines the two transformations (order matters) Point3D pt = new (10, 20, 30); Point3D newPt = xForm * p; // transforms the point pt
Dim tra As Transformation = New Transformation() tra.Translation(10, 0, 0) Dim rot As Transformation = New Transformation() rot.Rotation(Math.PI/6, Vector3D.AxisY) ' angle In radians Dim xform As Transformation = tra * rot ' combines the two transformations (order matters) Dim pt As Point3D = New (10, 20, 30) Dim ptNew As Point3D = xForm * p ' transforms the point pt
System.Object
devDept.Geometry.Transformation
devDept.Geometry.Align3D
devDept.Geometry.Identity
devDept.Geometry.Mirror
devDept.Geometry.Rotation
devDept.Geometry.Scaling
devDept.Geometry.Translation