Package schrodinger :: Package application :: Package lid :: Package lid2d :: Module utils
[hide private]
[frames] | no frames]

Module utils

Functions [hide private]
 
add_to_dict_if_no_key(d, k, val)
 
sort_first_element(x, y)
 
size2D(p)
 
rectArea2D(r)
 
dot2d(u, v)
 
distance2D(p1, p2)
 
distance3D(p1, p2)
 
perp(u, v)
 
ptSegDistSqPT(pt1, pt2, pt)
 
ptSegDistSq(x1, y1, x2a, y2a, pxa, pya)
 
areIntersecting2Dpts(S1a, S1b, S2a, S2b, debug=False)
 
areIntersecting2DptsAdjacent(S1a, S1b, S2a, S2b, debug=False)
 
comp_out_code(p, w, h)
 
point_inside_rectangle(pt, rect)
 
line_overlaps_rectangle(p1, p2, bbx, debug=False)
 
cut_line_in_rectangle(p1, p2, bbx, debug=False)
 
distance2DfromOrigin(p1)
 
sgn(num)
 
inBetween(num, val1, val2)
 
line_overlaps_sphere(line, sphere_pt, sphere_radius)
 
rectangle_overlaps_sphere(rect, pt, sphere_radius)
 
compute3DAngle(v1, v2)
 
crossProduct2d(v1, v2)
 
computeCrossProduct(v1, v2)
 
normalizeArray2d(v)
 
normalizeArray3d(v)
 
computeNormalFrom2Vectors(v1, v2)
 
transformPoint(mat, pt)
 
rectangles_overlap(r1, r2)
 
enclosed_by(r1, r2)
 
pt_enclosed_by(pt, r)
 
add_bounding_rect_offset_xywh(bbx, xywh)
 
add_bounding_rect_offset_xy(bbx, xy, br)
 
add_bounding_rect_offset(bbx, at, br)
 
add_point_to_bbx(bbx, pt)
 
whichSideIsPoint(line, pt)
 
enumerate_vector_with_rot_angle_2d(vect, num_enum)
 
rot_vect(vect, ang)
 
workspace_set_view_matrix_4x4(mat)
 
premul(mat1, mat2)
 
findCentroid(st, allatoms)
 
convertArrayToMatrix(arr)
 
convertArrayToMatrixT(arr)
 
rotVector(angle, x, y, z, v)
 
computeUpVectorForLookAt(forward, align_view, ct2d_best_fit_m)
Variables [hide private]
  maestro = None
hash(x)
  epsilon = 1e-15
  epsilons = 1e-05
  __package__ = 'schrodinger.application.lid.lid2d'