Exemple #1
0
        public Object Clone()
        {
            PMatrixOneScale r = new PMatrixOneScale();

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

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