3d-dart/server/system/NAfunctionLib.py
def DegreeToUnitvec(angle):
	
	"""Extract the contribution of global roll and tilt to the global angle by solving the unit cirkel equation"""

	unitcirkel = []

	unitcirkel.append(math.cos(math.radians(angle)))
	unitcirkel.append(math.sin(math.radians(angle)))

	return unitcirkel
Extract the contribution of global roll and tilt to the global angle by solving the unit cirkel equation
Extract the contribution of global roll and tilt to the global angle by solving the unit cirkel equation
Extract the contribution of global roll and tilt to the global angle by solving the unit cirkel equation
def DegreeToUnitvec(angle):
	unitcirkel = []
	unitcirkel.append(math.cos(math.radians(angle)))
	unitcirkel.append(math.sin(math.radians(angle)))
	return unitcirkel
def DegreeToUnitvec ( angle ) : unitcirkel = [ ] unitcirkel . append ( math . cos ( math . radians ( angle ) ) ) unitcirkel . append ( math . sin ( math . radians ( angle ) ) ) return unitcirkel
Extract the contribution of global roll and tilt to the global angle by solving the unit cirkel equation
Extract the contribution of global roll and tilt to the global angle by solving the unit cirkel equation
"""Extract the contribution of global roll and tilt to the global angle by solving the unit cirkel equation"""
angle