import math


def scalarToVector(magnitude, angle):
	""" 
	Converts a speed and vector into a vector array [x, y, z] 
	X is horizontal magnitude, Y is vertical magnitude, and Z is magnitude in/out of screen

	arg magnitude - the magnitude of the vector
	arg angle - the direction in radians of the vector

	Returns an array with the x, y, z vector 
	"""
	# We leave z blank for now, since we don't use it
	# In the future, add functionality for two angles
	return [math.cos(angle) * magnitude, math.sin(angle) * magnitude, 0]