You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
The projection math in TransformState is often dependent on the current scale, but it would be great to factor some of that to be based on Projection, which is more readily available to code at the SDK level. That would hep to eliminate some of the additional redundancy at the SDK level.
I believe we shouldn't use vec2<T> directly (we could enforce this by e.g. enforcing a private ctor). Instead, we'd use meaningful aliases like PrecisionPoint. It seems to me that Coordinate and PrecisionPoint are correlates, so we might get rid of Coordinate. From what I see, std::array<float, 2> can also be easily transformed into a PrecisionPoint. In sum, we'd get rid of vec2<T> (directly), Coordinate and std::array<float, 2>.
Activity
jfirebaugh commentedon Feb 2, 2016
We also have at least three duplicated and inconsistent copies of projection math:
projection.hpptransform_state.cppgeo.cpp1ec5 commentedon Feb 2, 2016
The projection math in TransformState is often dependent on the current scale, but it would be great to factor some of that to be based on Projection, which is more readily available to code at the SDK level. That would hep to eliminate some of the additional redundancy at the SDK level.
brunoabinader commentedon Feb 3, 2016
Good point @jfirebaugh 👍
I believe we shouldn't use
vec2<T>directly (we could enforce this by e.g. enforcing a private ctor). Instead, we'd use meaningful aliases likePrecisionPoint. It seems to me thatCoordinateandPrecisionPointare correlates, so we might get rid ofCoordinate. From what I see,std::array<float, 2>can also be easily transformed into aPrecisionPoint. In sum, we'd get rid ofvec2<T>(directly),Coordinateandstd::array<float, 2>.