public TranslationMatrix Inverse() { TranslationMatrix t = (TranslationMatrix)Clone(); t[0, 2] *= -1; t[1, 2] *= -1; return(t); }
public Vector2 ScaleFrom(Vector2 vec, double xc, double yc) { Matrix <double> col = FromVec2DCol(vec); TranslationMatrix translate = new TranslationMatrix(-xc, -yc); col = Prod(translate, col); col = Prod(this, col); col = Prod(translate.Inverse(), col); return(new Vector2((float)col[0, 0], (float)col[1, 0])); }