PhotonBursted / nu_plugin_vec

A Nushell plugin implementing vector operations
MIT License
2 stars 1 forks source link

Introduce vector normalize operation #6

Closed PhotonBursted closed 1 week ago

PhotonBursted commented 2 weeks ago

Add a command which returns the "unit vector".

Perhaps we could call this to unit or normalize or something. It's equivalent to dividing by the magnitude of the vector, but that seems to be annoying to spell in Nu.

YPares commented 2 weeks ago

+1 for normalize