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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ppb-vector-1.0.tar.gz.

File metadata

  • Download URL: ppb-vector-1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.3

File hashes

Hashes for ppb-vector-1.0.tar.gz
Algorithm Hash digest
SHA256 70b314aa0f0874f666228e9e73898b794b44fc6628a94ee654893066f6a1a4ca
MD5 36875e79818dd0759581ee23f1cfd388
BLAKE2b-256 e3cbf266f1eb83e150096fa3ec7dddc080ece57c8f5c5bd26a28a4973823e8f3

See more details on using hashes here.

File details

Details for the file ppb_vector-1.0-py3-none-any.whl.

File metadata

  • Download URL: ppb_vector-1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.3

File hashes

Hashes for ppb_vector-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2adde9aa4c905d412a0146353255b377eb54b472d64cc57fd99f5f2cbd9d8b6
MD5 9511b5a53b59bac4d5efcfefe636f599
BLAKE2b-256 51ccff65d3b5ef5dcf735827e66427d262616b948a64621d4c4ca151bcdf1d5f

See more details on using hashes here.

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