Skip to main content

A basic game development Vector class.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ppb-vector-1.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

ppb_vector-1.0-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page