Skip to content

[DEVELOPMENT] Generalize Angle API #12

@marnec

Description

@marnec

Brief explanation
Write a generic implementation to draw an angle between two vectors

Details
Vectorplot implementation introduced logic to draw an semicirumference representing an angle. In the current implementation drawing the angle is restricted to a few cases needed by the plot.

This implementation could be generalized to the case of any two vectors. This could be usefult for other plots and for testability purposes.

Notes
The angle between two vectors has only sense when they share an origin, this means that a generic function computing the angle between two vectors would accept at least 3 arguments (v1, v2, origin), where origin is (0,0,0) by default

The angle between two vectors can be represented as a semicircle, which need to lay on a plane. The plane that is defined by the two vectors, or in more generalized terms it is defined by 3 points. However these 3 points should not lay on the same line (otherwise we would have infinite possible planes)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions