Skip to content

The values of degrees parameter of RandomRotation() are inclusive so they should be [min, max] and [-degrees, +degrees] #8831

Open
@hyperkai

Description

📚 The doc issue

The doc of RandomRotation() says that the range of degrees parameter is (min, max) and (-degrees, +degrees) as shown below but actually, the values of degrees parameter are inclusive:

Parameters:

  • degrees (sequence or number) – Range of degrees to select from. If degrees is a number instead of sequence like (min, max), the range of degrees will be (-degrees, +degrees).

Suggest a potential alternative/fix

So they should be [min, max] and [-degrees, +degrees] as shown below:

Parameters:

  • degrees (sequence or number) – Range of degrees to select from. If degrees is a number instead of sequence like [min, max], the range of degrees will be [-degrees, +degrees].

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions