public Vector sub ( Vector b ) { if ( ( b == null ) || ( size != b . size ) ) return null ; int i ; Vector result = new Vector ( size ) ; for ( i = 0 ; i < size ; i ++ ) result . vector [ i ] = vector [ i ] - . vector [ i ] ; return result ; }
Subtraktion from two vectors