def assertVectorEquals(v1, v2, tol_angle, tol_length): import utils.Geometry as Geometry import math cosineSim = Geometry.cosine_similarity(v1, v2) cosTol = math.cos(tol_angle) return cosineSim >= cosTol
def assertVectorEquals(v1, v2, tol_angle, tol_length): import utils.Geometry as Geometry import math cosineSim = Geometry.cosine_similarity(v1, v2); cosTol = math.cos(tol_angle); return cosineSim >= cosTol