mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Fix improper gutter offset in camera computation
This commit is contained in:
parent
38fbc391e8
commit
7ff0b65d81
@ -53,7 +53,7 @@ class Genome(object):
|
|||||||
and height. Assumes that width and height are constant.
|
and height. Assumes that width and height are constant.
|
||||||
"""
|
"""
|
||||||
g = Features.gutter
|
g = Features.gutter
|
||||||
return ( affine.translate(0.5 * cp.width + g, 0.5 * cp.height + g)
|
return ( affine.translate(0.5 * (cp.width + g), 0.5 * (cp.height + g))
|
||||||
* affine.scale(cp.ppu, cp.ppu)
|
* affine.scale(cp.ppu, cp.ppu)
|
||||||
* affine.translate(-cp._center[0], -cp._center[1])
|
* affine.translate(-cp._center[0], -cp._center[1])
|
||||||
* affine.rotate(cp.rotate * 2 * np.pi / 360,
|
* affine.rotate(cp.rotate * 2 * np.pi / 360,
|
||||||
|
Loading…
Reference in New Issue
Block a user