RegularCoords

class hcipy.field.RegularCoords(delta, dims, zero=None)

Bases: hcipy.field.coordinates.CoordsBase

A list of points that have a regular spacing in all dimensions.

Parameters
deltaarray_like

The spacing between the points.

dimsarray_like

The number of points along each dimension.

zeroarray_like

The coordinates for the first point.

Attributes
delta

The spacing between the points.

dims

The number of points along each dimension.

zero

The coordinates for the first point.

Attributes Summary

regular_coords

The tuple (delta, dims, zero) of the regularly-spaced coordinates.

separated_coords

A tuple of a list of the values for each dimension.

shape

The shape of an numpy.ndarray with the right dimensions.

size

The number of points.

Methods Summary

reverse(self)

Reverse the ordering of points in-place.

Attributes Documentation

regular_coords

The tuple (delta, dims, zero) of the regularly-spaced coordinates.

separated_coords

A tuple of a list of the values for each dimension.

The actual points are the iterated tensor product of this tuple.

shape

The shape of an numpy.ndarray with the right dimensions.

size

The number of points.

Methods Documentation

reverse(self)

Reverse the ordering of points in-place.