Skip to content

Add Vector helper #537

@dopplershift

Description

@dopplershift

After seeing some of the complexities in implementing storm motion and shear, it seems like we need a Vector container to make it simpler to group vector components.

  • A simple wrapper around a Quantity
  • Support unpacking like a tuple
  • Support math operations
  • Provide .magnitude to get vector magnitude
  • Maybe have methods for dot and cross
  • Methods to simplify cross product with unit vectors (think k x vec)
  • Easy creation from 2 or more components (with unit checking)
  • Easy access to individual components

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions