Beispiel #1
0
            Vector theVector; // Vector object that this enumerato refers to

            #endregion Fields

            #region Constructors

            public VectorEnumerator(Vector theVector)
            {
                this.theVector = theVector;
                location = -1;
            }
Beispiel #2
0
 public Vector(Vector rhs)
 {
     x = rhs.x;
      y = rhs.y;
      z = rhs.z;
 }
Beispiel #3
0
 public static Vector operator +(Vector lhs, Vector rhs)
 {
     Vector Result = new Vector(lhs);
      Result.x += rhs.x;
      Result.y += rhs.y;
      Result.z += rhs.z;
      return Result;
 }