Skip to content
/ ppb-vector Public

A 2D Vector class for PPB.

License

Notifications You must be signed in to change notification settings

ppb/ppb-vector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

15097fe · Feb 6, 2022
Jun 8, 2019
Mar 29, 2019
Oct 23, 2021
Dec 23, 2021
Dec 12, 2021
Feb 6, 2022
Oct 25, 2021
May 25, 2019
Aug 28, 2020
Oct 13, 2017
May 31, 2019
Nov 2, 2021
Oct 27, 2021
Nov 2, 2021
Nov 1, 2021
Apr 2, 2019
Nov 2, 2021
May 28, 2020
May 26, 2019
Oct 27, 2021
Oct 23, 2021
Oct 27, 2021
Nov 2, 2021

ppb-vector

The immutable, 2D vector class for the PursuedPyBear project.

Vector implements many convenience features, as well as useful mathematical operations for 2D geometry.

Install

You can install Vector pip package using

pip install 'ppb-vector'

Usage

Vector is an immutable 2D Vector, which is instantiated as expected:

>>> from ppb_vector import Vector
>>> Vector(3, 4)
Vector(3.0, 4.0)

See the API reference for an overview of the functionality.

Version numbers follow the semantic versioning convention, so requiring ppb-vector ~= 1.0 is appropriate for software developped against this release: the version specification will match any 1.x release, starting with 1.0.