Determining if a vector is within a primitive (no not rays!)

Given vector A how can we determine if it is within a primitive if we know the mean (basically position) and absolute positions of its vertices?

local vectorA = Vector3.new(head) - Vector3.new(tail)
local verticies = {
1,0,0,
0,1,0,
0,0,1,
-1,0,0
0,-1,0,
0,0,-1,
1,0,1,
1,1,1
}
local function isVectorColidingWithPrimitive(vectorA, verticies)
  if someEquation then
    return true
  else
    return false
  end
end