1. 01 Feb, 2021 1 commit
  2. 20 Dec, 2018 1 commit
    • Jason Swails's avatar
      Improve vec3 (#2230) · 4eb893cf
      Jason Swails authored
      * Improve vec3
      
      * Added a ``__neg__`` operator overload so that -Vec3(1, 2, 3) returns
        the same thing as Vec3(-1, -2, -3)
      * Derived Vec3 from namedtuple instead of tuple. This allows you to
        access the 3 elements of the vector by name. i.e., vec.x, vec.y, vec.z
      
      * Make sure we use floating point division all the time.
      4eb893cf