ekmett / linear

Low-dimensional linear algebra primitives for Haskell.
http://hackage.haskell.org/package/linear
Other
200 stars 50 forks source link

Field[n] instance for Affine.Point? #165

Open gilgamec opened 3 years ago

gilgamec commented 3 years ago

I notice there's no instance of lens's Field[n] for Points over, say, V3. Since there's an instance of R[n], I'm guessing this is an oversight. Is there a particular reason we'd like lenses _x, _y, _z... but not _1, _2, _3..., or could this instance be added?

RyanGlScott commented 3 years ago

This seems like a sensible thing to add.