Пример #1
0
        public static Space2DTranslation CreateFromTranslateFrom(Matrix translateFrom)
        {
            Space2DTranslation instance = new Space2DTranslation();

            instance._translateTo   = Matrix.Invert(translateFrom);
            instance._translateFrom = translateFrom;
            return(instance);
        }
Пример #2
0
        public static Space2DTranslation Create()
        {
            Space2DTranslation instance = new Space2DTranslation();

            instance._translateTo   = Matrix.Identity;
            instance._translateFrom = Matrix.Identity;
            return(instance);
        }
Пример #3
0
 protected virtual void RecalculateTransform()
 {
     Transform = Space2DTranslation.CreateFromTranslateFrom(MatrixUtility.GetTransformFromExtentToAbsolute(this));
     RecalculateBounds();
     RaiseOnChanged();
 }
Пример #4
0
 protected virtual void SetTransformTemplate(Space2DTranslation transform)
 {
 }