Comments (6)
@Juanlu001 I agree, but this had better be for a 3.0 release (which I'll be happy to see).
from affine.
I'm not sure it is related, but I was surprised to see the following behavior:
a = Affine(1, 0, 10, 0, -1, 20)
a * Affine.scale(2)
# Affine(2.0, 0.0, 10.0,
# 0.0, -2.0, 20.0)
Affine.scale(2) * a
# Affine(2.0, 0.0, 20.0,
# 0.0, -2.0, 40.0)
from affine.
@davidbrochart matrix multiplication is not generally commutative – we can't switch the order and expect the same results.
from affine.
Then I'm not using it right - I just wanted to cut the resolution by half.
from affine.
@davidbrochart increase the pixel size by 2 while preserving the origin? In that case to do it with matrix multiplication you need to translate to (0, 0), scale, and then translate back. It's probably easier to modify the matrix elements directly.
from affine.
Thanks!
from affine.
Related Issues (20)
- Add Affine to homebrew ? HOT 1
- Support only pythons >= 3.5
- Interoperability with shapely affinity module HOT 9
- Add `from_bounds` and `from_origin` class methods HOT 1
- Generate WHLs for Windows HOT 1
- Generate manylinux WHLs HOT 1
- Docs (readthedocs) ? HOT 8
- Rotate by radians ? HOT 9
- Why my metrix is rounded automatically HOT 1
- [Enhancement] Affine to be transparently multipliable with Numpy arrays HOT 2
- Move CI to GHA
- `__mul__` doesn't always return NotImplemented on failure HOT 3
- Type hints? HOT 2
- In board, zoom scroll jumps too fast from 10% 70% 250%
- In board, connectors doesn't anchor to objects
- Affine class no longer compatible with delayed operations in Dask 2022.8.1 HOT 7
- Affine class not compatible with Pydantic HOT 2
- Floating Point Issue and Affine HOT 2
- Outdated code from python 2 / 3 compatibility HOT 3
- 2.4.0 release HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from affine.