Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for ppb-vector, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size ppb_vector-1.0-py3-none-any.whl (10.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size ppb-vector-1.0.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page