QUESTION IMAGE
Question
in vpython, finish the code to draw a vertical axis. origin = vector (0, 0, 0) axis = cylinder(pos=origin, axis=vector() 50, 0, 0 0, 50, 0 0, 0, 50
Step1: Understand vertical axis in 3D
In a 3 - D Cartesian coordinate system, the vertical axis is the z - axis. A vector representing the vertical direction has x = 0 and y = 0 and a non - zero z value.
Step2: Select the correct vector
The vector representing a vertical direction with a length (in this case magnitude) of 50 is (0, 0, 50).
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
0, 0, 50