Пример #1
0
 public virtual PointImmutableBuilder Set(PointImmutable other)
 {
     SetX(other.X);
     SetY(other.Y);
     SetA(other.A);
     return(this);
 }
		public virtual PointImmutableBuilder Set(PointImmutable other)
		{
			SetX(other.X);
			SetY(other.Y);
			SetA(other.A);
			return this;
		}
		public bool Equals(PointImmutable other)
		{
			if (ReferenceEquals(null, other)) return false;
			if (ReferenceEquals(this, other)) return true;
			return ((X == null && other.X == null) || (X != null && other.X != null && Math.Abs((double) X - (double) other.X) < 1E-06))
			       && Math.Abs(Y - other.Y) < 1E-06
			       && Equals(A, other.A)
			       ;
		}
Пример #4
0
 public bool Equals(PointImmutable other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(((X == null && other.X == null) || (X != null && other.X != null && Math.Abs((double)X - (double)other.X) < 1E-06)) &&
            Math.Abs(Y - other.Y) < 1E-06 &&
            Equals(A, other.A)
            );
 }
		public virtual PointImmutableBuilder SetA(PointImmutable a)
		{
			this.a = a;
			return this;
		}
Пример #6
0
 public virtual PointImmutable WithA(PointImmutable a)
 {
     return(new PointImmutable(X, Y, a));
 }
Пример #7
0
 protected BasePointImmutable(BasePointImmutable other)
 {
     this.X = other.X;
     this.Y = other.Y;
     this.A = other.A;
 }
Пример #8
0
 protected BasePointImmutable(double?x, double y, PointImmutable a)
 {
     X = x;
     Y = y;
     A = a;
 }
		public virtual PointImmutable WithA(PointImmutable a)
		{
			return new PointImmutable(X, Y, a);
		}
		protected BasePointImmutable(BasePointImmutable other)
		{
			this.X = other.X;
			this.Y = other.Y;
			this.A = other.A;
		}
		protected BasePointImmutable(double? x, double y, PointImmutable a)
		{
			X = x;
			Y = y;
			A = a;
		}
Пример #12
0
		public PointImmutable(PointImmutable other)
		: base(other)
		{
		}
Пример #13
0
		public PointImmutable(double? x, double y, PointImmutable a)
		: base(x, y, a)
		{
		}
Пример #14
0
 public virtual PointImmutableBuilder SetA(PointImmutable a)
 {
     this.a = a;
     return(this);
 }
Пример #15
0
 public PointImmutable(PointImmutable other)
     : base(other)
 {
 }
Пример #16
0
 public PointImmutable(double?x, double y, PointImmutable a)
     : base(x, y, a)
 {
 }