Skip to content

Using degrees when should use radians #9

@tom--lee

Description

@tom--lee

In random_rotation, uniform random numbers are generated between zero and 360.

phi = random.uniform(0.,360.)

I copied part of this code for my project and found that phi should actually be in radians, so that the range should be between 0 and 2pi. Unless something is somehow different on my system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions