Skip to content

Commit 18fde14

Browse files
author
Andy Ferris
committed
Minimum versions for Rotations, fix show
1 parent 569c7bf commit 18fde14

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
julia 0.5-
22
StaticArrays
3-
Rotations
3+
Rotations 0.3.0

src/affine.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ end
1414
Translation(x::Tuple) = Translation(SVector(x))
1515
Translation(x,y) = Translation(SVector(x,y))
1616
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...))")
1818

1919
function (trans::Translation{V}){V}(x)
2020
x + trans.v
@@ -44,7 +44,7 @@ for any `AbstractMatrix` `M`.
4444
immutable LinearMap{M <: AbstractMatrix} <: AbstractAffineMap
4545
m::M
4646
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
4848

4949
function (trans::LinearMap{M}){M}(x)
5050
trans.m * x
@@ -121,7 +121,7 @@ function AffineMap(trans::Transformation, x0)
121121
AffineMap(dT, Tx - dT*x0)
122122
end
123123

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
125125

126126
function compose(t1::Translation, t2::LinearMap)
127127
AffineMap(t2.m, t1.v)

0 commit comments

Comments
 (0)