johnpmayer / elm-linear-algebra

BSD 3-Clause "New" or "Revised" License
16 stars 21 forks source link

Fix docs for Vector*.direction #13

Closed nphollon closed 8 years ago

nphollon commented 8 years ago

For the direction functions, I changed "from a to b" to "from b to a". You can check that this is correct by running:

import Math.Vector2 exposing (..)
import Graphics.Element exposing (show)

main =
  direction (vec2 0 0) (vec2 0 1)
    |> toRecord |> show

And you get:

{ x = 0, y = -1 }
nphollon commented 8 years ago

Looks like there is a problem with the Travis CI configuration? I don't think it's something I have control over.