示例#1
0
 /// <summary>
 /// Is another vector the "same" as this vector? "Same" implies "really close", as opposed to "double==double"
 /// </summary>
 /// <param name="_other">The vector to compare to this one</param>
 /// <returns>TRUE if the X,Y values are "close"</returns>
 public bool AreSame(CVector _other) => X.IsClose(_other.X) && Y.IsClose(_other.Y);
示例#2
0
 /// <summary>
 /// Copy constructor from another 2d vector
 /// </summary>
 /// <param name="_other">The 2d vector to copy</param>
 public CVector(CVector _other)
 {
     X = _other.X;
     Y = _other.Y;
 }