Add Translation.from_vector(vector) and Reflection.from_plane(plane)
See original GitHub issueFeature Request
As a user, I think the function Translation.from_vector(vector)
should be added. Both for the sake of completeness and convenience. Similarly Reflection.from_plane(plane)
.
Details
Maybe there is a better way to do this from a user’s perspective:
T = Translation(my_vector_with_really_long_name.x, my_vector_with_really_long_name.y, my_vector_with_really_long_name.z)
For example, this function will be consistent with , Transformation.from_frame_to_frame(frame_from, frame_to
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Using translation vectors to transform figures - Krista King Math
A translation vector is a type of transformation that moves a figure in the coordinate plane from one location to another.
Read more >Translations and Vectors | CK-12 Foundation
Translation : A transformation that moves every point in a figure the same distance in the same direction. In the coordinate plane, we...
Read more >Rigid Transformations (Isometries) - MathBitsNotebook(Geo
A translation is a rigid transformation of the plane that moves every point of a pre-image a constant distance in a specified direction....
Read more >Transformation using matrices - Geometry - Math Planet
A vector could be represented by an ordered pair (x,y) but it could also be ... if we want to translate the figure...
Read more >EMT 469 Instructional Unit
Rotational Symmetry - A figure in the plane has rotational symmetry if the ... By a point: When translating a point, add the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe the two proposed functions is already completed, see this: https://compas-dev.github.io/main/api/generated/compas.geometry.Translation.from_vector.html https://compas-dev.github.io/main/api/generated/compas.geometry.Reflection.from_plane.html
while reworking the docs i noticed some inconsistencies. reworking them still. will push out update asap…