Configuration.max_difference

Configuration.max_difference(other)[source]

Returns the maximum difference to another Configuration’s values.

Parameters

other (Configuration) – The configuration to compare to.

Returns

float – The maximum absolute difference.

Examples

>>> c1 = Configuration.from_revolute_values([1, 0, 3])
>>> c2 = Configuration.from_revolute_values([1, 2 * pi, 4])
>>> c1.max_difference(c2)
1.0