Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Geometry Namespace / Transformation Class
Members Example

In This Topic
    Transformation Class
    In This Topic
    4x4 transformation matrix.
    Syntax
    'Declaration
     
    Public Class Transformation 
    public class Transformation 
    Example
    Usage example.
    Transformation t = new Translation(10, 0, 0);
    Transformation r = new Rotation(Math.PI/6, Vector3D.AxisY); // angle in radians
     
    Transformation c = t * r; // combines the two transformations (order matters)
     
    Point3D pt = new (10, 20, 30);
     
    Point3D newPt = c * p; // transforms the point pt
    Dim t As Transformation = New Translation(10, 0, 0)
    Dim r As Transformation = New Rotation(Math.PI/6, Vector3D.AxisY) ' angle in radians
     
    Dim c As Transformation = t * r ' combines the two transformations (order matters)
     
    Dim pt As Point3D = New (10, 20, 30)
     
    Dim ptNew As Point3D = c * p ' transforms the point pt
    Inheritance Hierarchy

    System.Object
       devDept.Geometry.Transformation
          devDept.Geometry.Align3D
          devDept.Geometry.Identity
          devDept.Geometry.Mirror
          devDept.Geometry.Rotation
          devDept.Geometry.Scaling
          devDept.Geometry.Translation

    See Also