Welcome to Polar for Sphinx I’s documentation!

The polar Module

class polar_for_sphinx.Polar(distance=0.0, bearing=0.0)

specifies a 2D position or velocity in polar coordinates

This class represents a 2D position or velocity measured in polar coordinates and defined by its distance (or speed) and an angle (bearing) (in radians) from the positive y (‘North’) direction.

We follow the conventions of navigation, not mathematics, so 0 degrees is North and bearings increase in a clockwise fashion.

DEGREES_TO_RADIANS = 0.017453292519943295

multiplicative constant to convert degrees to radians

RADIANS_TO_DEGREES = 57.29577951308232

multiplicative constant to convert radians to degrees

rect()

returns the rectangular (Cartesian) coords as an (x, y) tuple

Indices and tables