File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 183
183
"getunit" ,
184
184
"isnumberlist" ,
185
185
"isvectorlist" ,
186
+
186
187
# spatialmath.base.quaternions
187
188
"pure" ,
188
189
"qnorm" ,
206
207
"dotb" ,
207
208
"angle" ,
208
209
"qprint" ,
210
+
209
211
# spatialmath.base.transforms2d
210
212
"rot2" ,
211
213
"trot2" ,
222
224
"xyt2tr" ,
223
225
"tr2xyt" ,
224
226
"trinv2" ,
227
+
225
228
# spatialmath.base.transforms3d
226
229
"rotx" ,
227
230
"roty" ,
282
285
"e2h" ,
283
286
"homtrans" ,
284
287
"rodrigues" ,
288
+
285
289
# spatialmath.base.vectors
286
290
"colvec" ,
287
291
"unitvec" ,
301
305
"iszero" ,
302
306
"wrap_0_2pi" ,
303
307
"wrap_mpi_pi" ,
308
+ "wrap_0_pi" ,
304
309
# spatialmath.base.animate
305
310
"Animate" ,
306
311
"Animate2" ,
312
+
307
313
# spatial.base.graphics
308
314
"plotvol2" ,
309
315
"plotvol3" ,
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ def unittwist2_norm(S):
501
501
502
502
def wrap_0_pi (theta ):
503
503
r"""
504
- Wrap angle to range [0, pi]
504
+ Wrap angle to range :math:` [0, \ pi]`
505
505
506
506
:param theta: input angle
507
507
:type theta: scalar or ndarray
@@ -513,7 +513,7 @@ def wrap_0_pi(theta):
513
513
"""
514
514
n = (theta / np .pi )
515
515
if isinstance (n , np .ndarray ):
516
- n = astype (int )
516
+ n = n . astype (int )
517
517
else :
518
518
n = int (n )
519
519
@@ -522,7 +522,7 @@ def wrap_0_pi(theta):
522
522
523
523
def wrap_0_2pi (theta ):
524
524
r"""
525
- Wrap angle to range [0, 2pi)
525
+ Wrap angle to range :math:` [0, 2\pi)`
526
526
527
527
:param theta: input angle
528
528
:type theta: scalar or ndarray
@@ -533,7 +533,7 @@ def wrap_0_2pi(theta):
533
533
534
534
def wrap_mpi_pi (angle ):
535
535
r"""
536
- Wrap angle to range [ -pi, pi)
536
+ Wrap angle to range :math:`[\ -pi, \ pi)`
537
537
538
538
:param theta: input angle
539
539
:type theta: scalar or ndarray
You can’t perform that action at this time.
0 commit comments