Example #1
0
 public bool copyTo(iVector ivDest)
 {
     ivDest.x = this.x;
     ivDest.y = this.y;
     ivDest.z = this.z;
     return(true);
 }
Example #2
0
		/*! Initialisation using a buffer
		 * \return Success
		 */	
		bool initialise( int size,			/**< Size of the movement */
				iVector[] vectorArray )	/**< Array containing the initial value, set NULL if not needed */
		{
			// input checks
			if( 0 == size ) {
				return false; 
			}
		
			if( m_buffer.Length>0 ) {
				m_buffer=new iVector[0];
			}
		
			// create buffer
			m_size = size;
			m_buffer = new iVector[ m_size ];
			if( vectorArray.Length>0 ) {
				m_buffer=vectorArray;
				m_size=m_buffer.Length;
			}
		
			return true;
		}
Example #3
0
		public bool initialise(iVector[] inMove){
			if(this.m_buffer.Length>0)
				this.clear();
			if(inMove.Length==0)
				return false;
			// create buffer
			this.m_size=inMove.Length;
			this.m_buffer=new iVector[this.m_size];
			iVector[] iterBuffer=this.m_buffer;
			// copy data
			for(int i=0;i<m_size;i++){
				iterBuffer[i]=inMove[i];
			}
			return true;
		}
Example #4
0
		public bool copyTo(iVector ivDest){
			ivDest.x=this.x;
			ivDest.y=this.y;
			ivDest.z=this.z;
			return true;
		}
Example #5
0
		public iVector copy(iVector iv){
			return new iVector(iv.x,iv.y,iv.z);
		}
Example #6
0
 public iVector copy(iVector iv)
 {
     return(new iVector(iv.x, iv.y, iv.z));
 }