/// <summary> /// Set the transform that is applied to all geometry in the renderPackage /// by computing the matrix that transforms between from and to. /// </summary> /// <param name="from"></param> /// <param name="to"></param> public void SetTransform(Autodesk.DesignScript.Geometry.CoordinateSystem from, Autodesk.DesignScript.Geometry.CoordinateSystem to) { var inverse = from.Inverse(); var final = inverse.PreMultiplyBy(to); this.SetTransform(final); }