コード例 #1
0
 public CanonicalDecomposition(CanonicalDecomposition sourceDecomposition)
 {
     this.Center        = sourceDecomposition.center;
     this.Scale         = sourceDecomposition.scale;
     this.Skew          = sourceDecomposition.skew;
     this.RotationAngle = sourceDecomposition.rotationAngle;
     this.Translation   = sourceDecomposition.translation;
     this.UpdateValue();
 }
コード例 #2
0
 private void ReadTransform(Transform transform, bool useIfChangeable)
 {
     if (this.ReadCanonicalForm(transform, useIfChangeable))
     {
         return;
     }
     this.decomposition = new CanonicalDecomposition(transform.Value);
     this.InitializeTransformGroup();
 }
コード例 #3
0
 private CanonicalTransform(Transform transform, bool useIfChangeable)
 {
     if (transform == null)
     {
         this.Initialize();
     }
     else
     {
         this.decomposition = new CanonicalDecomposition();
         this.ReadTransform(transform, useIfChangeable);
     }
 }
コード例 #4
0
 public CanonicalTransform(Matrix transform)
 {
     if (transform.IsIdentity)
     {
         this.Initialize();
     }
     else
     {
         this.decomposition = new CanonicalDecomposition(transform);
         this.InitializeTransformGroup();
     }
 }
コード例 #5
0
 public CanonicalTransform(Transform transform)
 {
     if (transform == null)
     {
         this.Initialize();
     }
     else
     {
         this.decomposition = new CanonicalDecomposition();
         this.ReadTransform(transform, false);
     }
 }
コード例 #6
0
 public CanonicalTransform(CanonicalTransform canonicalTransform)
 {
     if (canonicalTransform == (CanonicalTransform)null)
     {
         this.Initialize();
     }
     else
     {
         this.decomposition = (CanonicalDecomposition)canonicalTransform.decomposition.Clone();
         this.InitializeTransformGroup();
     }
 }
コード例 #7
0
 private void Initialize()
 {
     this.decomposition = new CanonicalDecomposition();
     this.InitializeTransformGroup();
 }