rpxdock package

Subpackages

Submodules

rpxdock.homog module

rpxdock.homog.align_around_axis(axis, u, v)[source]
rpxdock.homog.align_lines_isect_axis2(pt1, ax1, pt2, ax2, ta1, tp1, ta2, sl2)[source]
rpxdock.homog.align_vector(a, b)[source]
rpxdock.homog.align_vectors(a1, a2, b1, b2)[source]

minimizes angular error

rpxdock.homog.angle(u, v)[source]
rpxdock.homog.angle_degrees(u, v)[source]
rpxdock.homog.angle_of(xforms)[source]
rpxdock.homog.angle_of_3x3(rots)[source]
rpxdock.homog.axis_ang_cen_of(xforms, debug=False)
rpxdock.homog.axis_ang_cen_of_eig(xforms, debug=False)[source]
rpxdock.homog.axis_ang_cen_of_planes(xforms, debug=False)[source]
rpxdock.homog.axis_angle_of(xforms)[source]
rpxdock.homog.axis_angle_of_3x3(rots)[source]
rpxdock.homog.calc_dihedral_angle(p1, p2, p3, p4)[source]
rpxdock.homog.dihedral(p1, p2, p3, p4)[source]
rpxdock.homog.expand_xforms(G, N=3, redundant_point=array([1.0, 3.0, 10.0, 1.0]), maxrad=9000000000.0)[source]
rpxdock.homog.fast_axis_of(xforms)[source]
rpxdock.homog.guess_is_degrees(angle)[source]
rpxdock.homog.h_rand_points(shape=1)[source]
rpxdock.homog.hcross(a, b)[source]
rpxdock.homog.hdot(a, b)[source]
rpxdock.homog.hinv(xforms)[source]
rpxdock.homog.hnorm(a)[source]
rpxdock.homog.hnorm2(a)[source]
rpxdock.homog.hnormalized(a)[source]
rpxdock.homog.hpoint(point)[source]
rpxdock.homog.hray(origin, direction)[source]
rpxdock.homog.hrot(axis, angle, center=None, dtype='f8', **args)[source]
rpxdock.homog.hstub(u, v, w, cen=None)[source]
rpxdock.homog.htrans(trans, dtype='f8')[source]
rpxdock.homog.hvec(vec)[source]
rpxdock.homog.intersect_planes(plane1, plane2)[source]
intersect_Planes: find the 3D intersection of two planes

Input: two planes represented by rays shape=(…, 4, 2) Output: L = the intersection line (when it exists) Return: rays shape=(…,4,2), status

0 = intersection returned 1 = disjoint (no intersection) 2 = the two planes coincide

rpxdock.homog.is_broadcastable(shp1, shp2)[source]
rpxdock.homog.is_homog_xform(xforms)[source]
rpxdock.homog.is_valid_quat_rot(quat)[source]
rpxdock.homog.is_valid_rays(r)[source]
rpxdock.homog.line_angle(u, v)[source]
rpxdock.homog.line_angle_degrees(u, v)[source]
rpxdock.homog.line_line_closest_points(ray1, ray2, verbose=0)[source]

currently errors if ax1==ax2

rpxdock.homog.line_line_closest_points_pa(pt1, ax1, pt2, ax2, verbose=0)[source]
rpxdock.homog.line_line_distance(ray1, ray2)[source]
rpxdock.homog.line_line_distance_pa(pt1, ax1, pt2, ax2)[source]
rpxdock.homog.point_in_plane(plane, pt)[source]
rpxdock.homog.proj_perp(u, v)[source]
rpxdock.homog.quat_multiply(q, r)[source]
rpxdock.homog.quat_to_rot(quat, dtype='f8', shape=3, 3)[source]
rpxdock.homog.quat_to_upper_half(quat)[source]
rpxdock.homog.quat_to_xform(quat, dtype='f8')[source]
rpxdock.homog.rand_point(shape=())[source]
rpxdock.homog.rand_quat(shape=())[source]
rpxdock.homog.rand_ray(shape=(), cen=0, 0, 0, sdev=1)[source]
rpxdock.homog.rand_unit(shape=())[source]
rpxdock.homog.rand_vec(shape=())[source]
rpxdock.homog.rand_xform(shape=(), cart_cen=0, cart_sd=1)[source]
rpxdock.homog.rand_xform_aac(shape=(), axis=None, ang=None, cen=None)[source]
rpxdock.homog.ray_in_plane(plane, ray)[source]
rpxdock.homog.rot(axis, angle, degrees='auto', dtype='f8', shape=3, 3)[source]
rpxdock.homog.rot_to_quat(xform)[source]
rpxdock.homog.rotation_around_dof_for_target_angle(target_angle, dof_angle, fix_to_dof_angle)[source]
rpxdock.homog.xform_around_dof_for_vector_target_angle(fix, mov, dof, target_angle)[source]
rpxdock.homog.xform_to_quat(xform)

Module contents