Vectormath

Latest version: v0.2.2

Safety actively analyzes 682441 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.2

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!

0.2.1

New Feature
- `angle` method on `Vector2` and `Vector3` to calculate the angle between two vectors. Thank you josephjcontreras! (See: 31 and 32)

0.2.0

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 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

0.1.4

Minor Changes
---------------
- LICENSE is now distributed with the vectormath package

0.1.2

Minor Changes
---------------

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

0.1.1

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`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.