d1 <= a*x + b*y + c*z <= d2
This gives you six inequalities that must be satisfied by any point within the parallelepiped. You should be able to determine these coefficients from the eight vertices.
Roger Stafford
A point lies inside iff all the coefficients are positive and are less than lengths of the corresponding sides.
My second approach here is about reducing your problem to a more general one for convex volumes not necessarily parallelopipeds: The parallelopiped object is a convex object. The notion of a convex hull is but an elastic surface that wraps around a collection of points in 3D space. Since you have identified these vertices, doing a convex hull of them should give you the parallelopiped.
http://www.mathworks.com/help/techdoc/ref/convhulln.html
Plot it to verify. If you are successful, then the problem reduces to finding if a point belongs within a convex 3D volume for which we have the second term v
[K, v] = convhulln(...)
If the point is within the volume, then the volume should not change. And I am going to keep mum about the computational complexity of doing this:)