public static boolean isIdentical ( Vector3D_F64 a , Vector3D_F64 b , double tol ) { if ( Math . abs ( a . x - b . x ) > tol ) return false ; if ( Math . abs ( a . y - b . y ) > tol ) return false ; return Math . abs ( a . z - b . z ) <= tol ; }
Checks to see if the two vectors are identical to within tolerance . Each axis is checked individually .