Mel - Maya Embedded Language

Conversion Funtions
deg_to_rad
Operation: Returns the radian equivalent of a degree value. One radian equals roughly 57.29578 degrees. Supported Data types: float float deg_to_rad( float degrees ) Example: deg_to_rad(90) Returns 1.571, which is the same as pi/2
rad_to_deg
Operation: Returns the degree equivalent of a radian value. One radian equals roughly 57.29578 degrees Supported Data types: float float rad_to_deg(float radians) Example: rad_to_deg(1) Returns 57.296
hsv_to_rgb
Operation: Converts an HSV vector to an RGB vector Supported Data types: vector vector hsv_to_rgb(vector hsv) hsv is a vector representing the hue, saturation, and value components. Example: hsv_to_rgb(<<1,0.5,0.6>>) Returns an RGB value of <<0.6, 0.3, 0.3>>
rgb_to_hsv
Operation: Converts an RGB vector to an HSV vector Supported Data types: vector vector rgb_to_hsv(vector rgb) rgb is a vector representing the red, green, and blue components. Example: rgb_to_hsv(<<0.6,0.6, 0.6>>) Returns <<0, 0, 0.6>>.