Skip to content

Add ClockwiseAngle for 2D applications #22

@juliohm

Description

@juliohm

I know the package only implements 3D rotations, but it would be nice to add this tiny struct for convenience and have conversion methods with DCM. Something as simple as

struct ClockwiseAngle{T}
  a::T
end

function Base.convert(::Type{<:DCM}, cw::ClockwiseAngle)
    s, c = sincos(cw.a)
    @SMatrix [c s; -s c]
end

I can submit a PR for that if you feel that it is useful.

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