Skip to content

Rotations appear to be counter clockwise? #55

@alkirkby

Description

@alkirkby

I think rotations are being applied in the wrong direction (counter-clockwise).
When I rotate my site by -(angle) I get the same result as if I rotate by +(angle) in geotools.

The rotation matrix given in utils.calculator.rotate_matrix_with_errors is:
[[cos(phi) -sin(phi)]
[sin(phi) cos(phi)]]

but in Simpson and Bahr it is:
[[cos(phi) sin(phi)]
[-sin(phi) cos(phi)]]
to rotate a coordinate clockwise from north (+x).

Metadata

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