public boolean isPointInsideBounds(Vector3f point, float error) {
        if (FastMath.abs(point.x - origin.x) > FastMath.abs(direction.x * extent) + error) {
            return false;
        }
        if (FastMath.abs(point.y - origin.y) > FastMath.abs(direction.y * extent) + error) {
            return false;
        }
        if (FastMath.abs(point.z - origin.z) > FastMath.abs(direction.z * extent) + error) {
            return false;
        }

        return true;
    }
<p>Evaluates whether a given point is contained within the axis aligned bounding box
that contains this LineSegment.</p><p>This function accepts an error parameter, which
is added to the extent of the bounding box.</p>

@param point the location of the input point (not null, unaffected)
@param error the desired margin for error
@return true if contained in the box, otherwise false
jme3-core/src/main/java/com/jme3/math/LineSegment.java