def ang_match3D(pt1, pt2, pt3, exp_ang):
ang_meas = get_line_ang_3D(pt1, pt2, pt3)
'''
print("pt1", pt1) # debug
print("pt2", pt2) # debug
print("pt3", pt3) # debug
print("exp_ang ", exp_ang) # debug
print("ang_meas ", ang_meas) # debug
'''
return flts_alm_eq(ang_meas, exp_ang)
# Calculates rotation around axis or face normal at Pivot's location.
# Takes two 3D coordinate Vectors (piv_co and mov_co), rotation angle in
# radians (ang_diff_rad), and rotation data storage object (rot_dat).
# Aligns mov_co to world origin (0, 0, 0) and rotates aligned
# mov_co (mov_aligned) around axis stored in rot_dat. After rotation,
# removes world-origin alignment.
评论列表
文章目录