Esempio n. 1
0
        public Object Clone()
        {
            PMatrixOneScale r = new PMatrixOneScale();

            r.Multiply(this);
            return(r);
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            PMatrixOneScale otherMatrix = (PMatrixOneScale)obj;

            return(offsetX == otherMatrix.offsetX &&
                   offsetY == otherMatrix.offsetY &&
                   scale == otherMatrix.scale);
        }
Esempio n. 3
0
 public Object Clone()
 {
     PMatrixOneScale r = new PMatrixOneScale();
     r.Multiply(this);
     return r;
 }
Esempio n. 4
0
 public void Multiply(PMatrixOneScale aTransform)
 {
     ScaleBy(aTransform.scale);
     offsetX = aTransform.scale * offsetX + aTransform.OffsetX;
     offsetY = aTransform.scale * offsetY + aTransform.OffsetY;
 }
Esempio n. 5
0
 public void Multiply(PMatrixOneScale aTransform)
 {
     ScaleBy(aTransform.scale);
     offsetX = aTransform.scale * offsetX + aTransform.OffsetX;
     offsetY = aTransform.scale * offsetY + aTransform.OffsetY;
 }