packages feed

linear 1.12.1 → 1.13

raw patch · 3 files changed

+8/−4 lines, 3 files

Files

CHANGELOG.markdown view
@@ -1,3 +1,7 @@+1.13+----+* Switched 'ortho' to follow the OpenGL handedness.+ 1.12.1 ------ * Added "swizzle" lenses **e.g.** `_yzx`, which are useful for working with libraries like `gl`.
linear.cabal view
@@ -1,6 +1,6 @@ name:          linear category:      Math, Algebra-version:       1.12.1+version:       1.13 license:       BSD3 cabal-version: >= 1.8 license-file:  LICENSE
src/Linear/Perspective.hs view
@@ -93,9 +93,9 @@   -> a -- ^ Far   -> M44 a ortho left right bottom top near far =-  V4 (V4 (2 / a) 0       0        (negate ((right + left) / a)))-     (V4 0       (2 / b) 0        (negate ((top + bottom) / b)))-     (V4 0       0       (-2 / c) ((far + near) / c))+  V4 (V4 (2 / a) 0       0        (negate (right + left) / a))+     (V4 0       (2 / b) 0        (negate (top + bottom) / b))+     (V4 0       0       (-2 / c) (negate (far + near) / c))      (V4 0       0       0        1)   where a = right - left         b = top - bottom