1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""A Euclidean ball constraint
A constraint of the form ||u-u0|| <= r, where u0 is the center
of the ball and r is its radius
"""
"""Constructor for a Euclidean ball constraint
Args:
center: center of the ball; if this is equal to Null, the
ball is centered at the origin
radius: radius of the ball
Returns:
New instance of Ball2 with given center and radius
"""
= None
=
"""Returns the center of the ball"""
return
"""Returns the radius of the ball"""
return