RotationSequence3D

class astropy.modeling.rotations.RotationSequence3D(angles, axes_order, name=None)[source]

Bases: astropy.modeling.Model

Perform a series of rotations about different axis in 3D space.

Positive angles represent a counter-clockwise rotation.

Parameters
anglesarray_like

Angles of rotation in deg in the order of axes_order.

axes_orderstr

A sequence of ‘x’, ‘y’, ‘z’ corresponding to axis of rotation.

Examples

>>> model = RotationSequence3D([1.1, 2.1, 3.1, 4.1], axes_order='xyzx')

Attributes Summary

angles

n_inputs

n_outputs

param_names

standard_broadcasting

Methods Summary

__call__(self, \*inputs[, model_set_axis, …])

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

evaluate(self, x, y, z, angles)

Apply the rotation to a set of 3D Cartesian coordinates.

Attributes Documentation

angles = Parameter('angles', value=[])
n_inputs = 3
n_outputs = 3
param_names = ('angles',)
standard_broadcasting = False

Methods Documentation

__call__(self, *inputs, model_set_axis=None, with_bounding_box=False, fill_value=nan, equivalencies=None, inputs_map=None, **new_inputs)

Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated.

evaluate(self, x, y, z, angles)[source]

Apply the rotation to a set of 3D Cartesian coordinates.