public static Space2DTranslation CreateFromTranslateFrom(Matrix translateFrom) { Space2DTranslation instance = new Space2DTranslation(); instance._translateTo = Matrix.Invert(translateFrom); instance._translateFrom = translateFrom; return(instance); }
public static Space2DTranslation Create() { Space2DTranslation instance = new Space2DTranslation(); instance._translateTo = Matrix.Identity; instance._translateFrom = Matrix.Identity; return(instance); }
protected virtual void RecalculateTransform() { Transform = Space2DTranslation.CreateFromTranslateFrom(MatrixUtility.GetTransformFromExtentToAbsolute(this)); RecalculateBounds(); RaiseOnChanged(); }
protected virtual void SetTransformTemplate(Space2DTranslation transform) { }