Skip to content

Normized vectors are not in simplest form #13

@AmityWilder

Description

@AmityWilder

Ternary results are displaying normalized vectors not in their simplest-form.

Example:
image

Current behavior

Vectors simplify per-element.
$$\large \hat{\underline{v}} = (\frac{\underline{v}_x}{|\underline{v}|},\frac{\underline{v}_y}{|\underline{v}|},\frac{\underline{v}_z}{|\underline{v}|})$$

Example:
$$\large \widehat{(3,4,5)} = (\frac{3}{\sqrt{50}},\frac{4}{\sqrt{50}},\frac{5}{\sqrt{50}}) = (\frac{3\sqrt{2}}{10},\frac{2\sqrt{2}}{5},\frac{\sqrt{2}}{2})$$

This is undesirable for readability and redundancy.

Expected behavior

Vectors should simplify as a complete whole.
$$\large \underline{\hat{v}} = \underline{v}\frac{1}{|\underline{v}|}$$

Example:
$$\large \widehat{(3,4,5)} = \frac{(3,4,5)}{\sqrt{50}} = \frac{(3,4,5)\sqrt{2}}{10}$$

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomplexity: 2 - mediumMay take an afternoon and probably some researchingpriority: 2 - mediumShould probably do this sooner rather than later

    Projects

    Status

    Todo

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions