Rotation2D¶
-
class
astropy.modeling.rotations.Rotation2D(angle=Parameter('angle', value=0.0), **kwargs)[source]¶ Bases:
astropy.modeling.ModelPerform a 2D rotation given an angle.
Positive angles represent a counter-clockwise rotation and vice-versa.
Parameters: angle : float or
QuantityAngle of rotation (if float it should be in deg).
Attributes Summary
anglen_inputsn_outputsparam_namesMethods Summary
__call__(*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(x, y, angle)Rotate (x, y) about angle.Attributes Documentation
-
angle= Parameter('angle', value=0.0)¶
-
n_inputs= 2¶
-
n_outputs= 2¶
-
param_names= ('angle',)¶
Methods Documentation
-
__call__(*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.
-