|
14 | 14 | Translation(x::Tuple) = Translation(SVector(x))
|
15 | 15 | Translation(x,y) = Translation(SVector(x,y))
|
16 | 16 | Translation(x,y,z) = Translation(SVector(x,y,z))
|
17 |
| -Base.show(io::IO, trans::Translation) = print(io, "Translation$((trans.dx...))") |
| 17 | +Base.show(io::IO, trans::Translation) = print(io, "Translation$((trans.v...))") |
18 | 18 |
|
19 | 19 | function (trans::Translation{V}){V}(x)
|
20 | 20 | x + trans.v
|
@@ -44,7 +44,7 @@ for any `AbstractMatrix` `M`.
|
44 | 44 | immutable LinearMap{M <: AbstractMatrix} <: AbstractAffineMap
|
45 | 45 | m::M
|
46 | 46 | end
|
47 |
| -Base.show(io::IO, trans::LinearMap) = print(io, "LinearMap($(trans.M))") # TODO make this output more petite |
| 47 | +Base.show(io::IO, trans::LinearMap) = print(io, "LinearMap($(trans.m))") # TODO make this output more petite |
48 | 48 |
|
49 | 49 | function (trans::LinearMap{M}){M}(x)
|
50 | 50 | trans.m * x
|
@@ -121,7 +121,7 @@ function AffineMap(trans::Transformation, x0)
|
121 | 121 | AffineMap(dT, Tx - dT*x0)
|
122 | 122 | end
|
123 | 123 |
|
124 |
| -Base.show(io::IO, trans::AffineMap) = print(io, "AffineMap($(trans.M), $(trans.v))") # TODO make this output more petite |
| 124 | +Base.show(io::IO, trans::AffineMap) = print(io, "AffineMap($(trans.m), $(trans.v))") # TODO make this output more petite |
125 | 125 |
|
126 | 126 | function compose(t1::Translation, t2::LinearMap)
|
127 | 127 | AffineMap(t2.m, t1.v)
|
|
0 commit comments