Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Accessing component of 3D vector?

So if you make a vector like this:

vector1 = arrow((0,0,0),(1,2,3))

and you want to access a component of the vector, for example the second y component (2), how would you do this? Something like vector1.y2 (that doesn't work haha) but how would I do this?