We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ab7a0 commit fccadaaCopy full SHA for fccadaa
src/projective/affine.jl
@@ -48,7 +48,7 @@ function getprojection(scale::ScaleKeepAspect{N}, bounds; randstate = nothing) w
48
upperleft = SVector{N, Float32}(minimum.(bounds.rs)) .- 0.5
49
P = scaleprojection(Tuple(ratio for _ in 1:N))
50
if upperleft != SVector(0, 0)
51
- P = P ∘ Translation((P(upperleft) .+ 0.5))
+ P = P ∘ Translation((Float32.(P(upperleft)) .+ 0.5f0))
52
end
53
return P
54
0 commit comments