Releases: seequent/vectormath
v0.2.2 - Support for polar coordinates in Vector2
New Features
See #34
Vector2
Constructor accepts polar coordinates (with the optional polar keyword argument)Vector2
andVector3
instances haverho
,theta
, andtheta_deg
as propertiesVector3
instances also havephi
andtheta_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
v0.2.0 - Array finalize and 2D cross
Backwards Incompatible Updates
-
Vector operations have been updated to prevent invalid vector states. This means either viewing vector operation outputs as
numpy.ndarray
s 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 aVector3Array
in Python 3 will error, but in Python 2 it will not, creating an invalid-shapeVector3Array
. Overall, these updates encourage users ofvectormath
to cast their vectors to numpy arrays when performing non-vector operations.
Other Updates
Vector2
now has across
method which evaluates to aVector3
with 0 for the x and y components. Thank you @Redhotsmasher!
Minor changes
- Branding updated to Seequent
v0.1.4 - Distribute LICENSE
Minor Changes
- LICENSE is now distributed with the vectormath package
v0.1.2 - ARANZ Naming
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
Major Features
- Removal of
Matrix
,Plane
, andParallelogram
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
Major Features
- Separation of
Vector
andVectorArray
classes- Single
Vector3
andVector2
s, of shape (3,) and (2,) respectively, can now be created. - Lists of vectors (the previous
Vector2
/3
behaviour) are now defined byVector3Array
andVector2Array
. - Individual elements in
Vector3Array
can be accessed asVector3
s; however vector math is done on the entire array at once rather than a slow loop
- Single
- Along with this comes
BaseVector
andBaseVectorArray
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
Vector2
class- More testing of vector functionality
v0.0.2 - Initial functionality
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.