W dniu 2016-12-07 o 09:58, [email protected] pisze:
Hi,
this maya be a dumb question. I basically have two points in space a(1,2,3) and
b(-2,4,7) and i want to find out what values i need to add to the 'a'
coordinates to get to the 'b' coordinates. If i subtract then it would give me
(1-(-2)),(2-4),(3-7) = (3,-2,-4).
but then if i add these difference values back on top of the 'a' coordinates i
wont get (-2,4,7), i get (4,0,-1)
this is probably a simple maths thing but im not clever :/
any help would be great,
Sam
You want to find vector "dist", so that:
a + dist = b
then, subtracting 'a' from both sides of equation:
dist = b - a
verify:
a + dist = b ==> a + (b-a) = b ==> b=b
:)
--
You received this message because you are subscribed to the Google Groups "Python
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/518c38d0-a35d-d7be-9f3f-bf001098fcf6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.