Skip to content

Releases: seequent/vectormath

v0.2.2 - Support for polar coordinates in Vector2

03 Apr 20:32
Compare
Choose a tag to compare

New Features

See #34

  • Vector2 Constructor accepts polar coordinates (with the optional polar keyword argument)
  • Vector2 and Vector3 instances have rho, theta, and theta_deg as properties
  • Vector3 instances also have phi and theta_phi as properties

For further discussion on how to generalize some of these changes, especially with regard to dimensionality, see #35

Thank you @Evelyn-H!

v0.2.1 - Angle method

16 Jan 08:52
Compare
Choose a tag to compare

New Feature

  • angle method on Vector2 and Vector3 to calculate the angle between two vectors. Thank you @josephjcontreras! (See: #31 and #32)

v0.2.0 - Array finalize and 2D cross

16 Apr 07:40
Compare
Choose a tag to compare

Backwards Incompatible Updates

  • Vector operations have been updated to prevent invalid vector states. This means either viewing vector operation outputs as numpy.ndarrays if they are the wrong shape (using __array_wrap__) or erroring if operations result in invalid vectors (using __array_finalize__).

    Note: the current implementation still does not always provide desired results; for example, calling flatten() on a Vector3Array in Python 3 will error, but in Python 2 it will not, creating an invalid-shape Vector3Array. Overall, these updates encourage users of vectormath to cast their vectors to numpy arrays when performing non-vector operations.

Other Updates

  • Vector2 now has a cross method which evaluates to a Vector3 with 0 for the x and y components. Thank you @Redhotsmasher!

Minor changes

  • Branding updated to Seequent

v0.1.4 - Distribute LICENSE

17 Jul 21:38
Compare
Choose a tag to compare

Minor Changes

  • LICENSE is now distributed with the vectormath package

v0.1.2 - ARANZ Naming

14 Jul 20:48
Compare
Choose a tag to compare

Minor Changes

  • First release of vectormath under ARANZ Geo branding
  • Explicit support for Python 3.3 is dropped

v0.1.1 - Removal of Matrix, Plane, Parallelogram

08 Nov 16:38
Compare
Choose a tag to compare

Major Features

  • Removal of Matrix, Plane, and Parallelogram classes
    • These classes were incomplete and need significant polishing before getting used

Minor Changes

  • No longer dependent on future

v0.1.0 - Separation of Vectors and VectorArrays

31 Oct 20:56
Compare
Choose a tag to compare

Major Features

  • Separation of Vector and VectorArray classes
    • Single Vector3 and Vector2s, of shape (3,) and (2,) respectively, can now be created.
    • Lists of vectors (the previous Vector2/3 behaviour) are now defined by Vector3Array and Vector2Array.
    • Individual elements in Vector3Array can be accessed as Vector3s; however vector math is done on the entire array at once rather than a slow loop
  • Along with this comes BaseVector and BaseVectorArray classes that exist to reduce the volume of repeated code

Minor Changes

  • Cleaned up code so pylint tests pass
  • Code coverage added

v0.0.3 - Vector2

16 Oct 19:46
Compare
Choose a tag to compare
  • Vector2 class
  • More testing of vector functionality

v0.0.2 - Initial functionality

26 Sep 22:02
Compare
Choose a tag to compare

Vectors, Planes & Parallelograms

  • Initial version of vectormath contains various features that are pulled from other libraries. The properties project uses this functionality for spatial properties.

Note:

The functionality and namespace is under review and is likely to change in a future release.