scikit-spatial is a Python library that provides spatial objects and computations between them. The basic objects – points and vectors – are subclasses of the NumPy
ndarray. Other objects such as lines, planes, and circles have points and/or vectors as attributes.
Computations can be performed after instantiating a spatial object. For example, a point can be projected onto a plane.
>>> from skspatial.objects import Plane
>>> plane = Plane(point=[0, 0, 0], normal=[1, 1, 1])
>>> plane.project_point([0, 5, 10]) Point([-5., 0., 5.])
Most of the computations fall into the following categories:
The library has four main objectives:
Provide an intuitive, object-oriented API for spatial computations.
Provide efficient computations by leveraging NumPy functionality whenever possible.
Integrate seamlessly with other libraries in the scientific Python ecosystem.
Facilitate the visualization of spatial objects in 2D or 3D space.
The package can be installed via pip.
$ pip install scikit-spatial