Stochastic.StationaryMove#

Stochastic.StationaryMove.py

Copyright (c) 2024, SAXS Team, KEK-PF

compute_boundary_walls(cx, cy, R, r, entry_points)#
compute_reflected_point(bpoints, wx, wy, nx, ny, debug=False)#
find_nearest_wall(grain, px, py)#
get_next_position_impl(particle, grain, last_px, last_py, px, py, debug_info=None)#
mirrorImage(a, b, c, x1, y1)#

borrowed from https://www.geeksforgeeks.org/find-mirror-image-point-2-d-plane/