local2global.utils.relative_scale¶
- relative_scale(coordinates1, coordinates2, clamp=100000000.0)[source]¶
compute relative scale of two sets of coordinates for the same nodes
- Parameters
coordinates1 – First set of coordinates (array-like)
coordinates2 – Second set of coordinates (array-like)
Note that the two sets of coordinates need to have the same shape.