# Rotation2D¶

class astropy.modeling.rotations.Rotation2D(angle=0.0, **kwargs)[source] [edit on github]

Perform a 2D rotation given an angle in degrees.

Positive angles represent a counter-clockwise rotation and vice-versa.

Parameters: angle : float angle of rotation in deg

Attributes Summary

Methods Summary

 __call__(x, y[, model_set_axis]) Evaluate this model using the given input(s) and the parameter values that were specified when the model was instantiated. evaluate(x, y, angle) Apply the rotation to a set of 2D Cartesian coordinates given as two lists–one for the x coordinates and one for a y coordinates–or a single coordinate pair.

Attributes Documentation

angle
inputs = ('x', 'y')
outputs = ('x', 'y')
param_names = ('angle',)

Methods Documentation

__call__(x, y, model_set_axis=None) [edit on github]

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

classmethod evaluate(x, y, angle)[source] [edit on github]

Apply the rotation to a set of 2D Cartesian coordinates given as two lists–one for the x coordinates and one for a y coordinates–or a single coordinate pair.