question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Translation.from_vector(vector) and Reflection.from_plane(plane)

See original GitHub issue

Feature 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brgcodecommented, May 19, 2020

while reworking the docs i noticed some inconsistencies. reworking them still. will push out update asap…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found