public override bool VirtuallyEquals(ColorSpace other) { var otherColor = other as Yxy; if (otherColor != null) { return(Y1.ApproximatelyEquals(otherColor.Y1) && X.ApproximatelyEquals(otherColor.X) && Y2.ApproximatelyEquals(otherColor.Y2)); } return(false); }