Version 1.0-alpha1
Pre-releaseGetting a pre-release onto PyPI allows us to unblock PPB and more easily get feedback from any testers.
Note that this is not expected to be final, as there are clearly issues we want to resolve before 1.0.
Breaking changes since 0.4.0rc1
- Vectors are now immutable, as implemented by
@dataclass(frozen=True)
(#106) - The cross-product operator (
x ^ y
), introduced in 0.4.0rc1, is now removed. (#80)
This is because its implementation was numerically unstable, and its only user (Vector2.angle
) switched to a different method.
New features & improvements since 0.4.0rc1
-
Provide an API reference documentation in docstrings and on Read The Docs.
-
Vector2
is now a dataclass, and as such support all related introspection functions,dataclasses.update
, ... (#106) -
Vector2.asdict
is a new method for converting vectors to vector-like dictionaries (#108). -
Vector2.isclose
supports arel_to
argument, to specify additional inputs that are considered for relative error (#64) -
Vector2.rotate
now uses higher-precision trigonometry, and better preserves vector lengths. (#89) -
Vector2.scale_to
is now more precise, at the cost of possible overflows with vectors larger than 1e75. (#87) -
Support the
/
operator for vector-scalar division:v / λ
is (mostly) equivalent to(1 / λ) * v
. (#79) -
Various performance improvements