File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,17 @@ Base.inv(trans::IdentityTransformation) = trans
74
74
recenter(trans::Union{AbstractMatrix,Transformation}, origin::AbstractVector) -> ctrans
75
75
76
76
Return a new transformation `ctrans` such that point `origin` serves
77
- as the origin-of-coordinates for `trans`. For example, if `trans` is a
78
- rotation matrix, then `ctrans` is a rotation around `origin`.
77
+ as the origin-of-coordinates for `trans`. Translation by `±origin`
78
+ occurs both before and after applying `trans`, so that if `trans` is
79
+ linear we have
80
+
81
+ ctrans(origin) == origin
82
+
83
+ As a consequence, `recenter` only makes sense if the output space of
84
+ `trans` is isomorphic with the input space.
85
+
86
+ For example, if `trans` is a rotation matrix, then `ctrans` rotates
87
+ space around `origin`.
79
88
"""
80
89
function recenter (trans:: Transformation , origin:: AbstractVector )
81
90
Translation (origin) ∘ trans ∘ Translation (- origin)
You can’t perform that action at this time.
0 commit comments